Skip JavaScript source maps
[cc0/argeo-build.git] / src / org / argeo / build / Make.java
index 8c9dadd64105823acc96f2c0bb8be61439c0134e..88036dae82e471eee78f7f71938bc598467ddbb8 100644 (file)
@@ -3,7 +3,6 @@ package org.argeo.build;
 import static java.lang.System.Logger.Level.DEBUG;
 import static java.lang.System.Logger.Level.ERROR;
 import static java.lang.System.Logger.Level.INFO;
-import static java.lang.System.Logger.Level.TRACE;
 import static java.lang.System.Logger.Level.WARNING;
 
 import java.io.File;
@@ -511,7 +510,7 @@ public class Make {
                                                if (exclude.matches(relativeP))
                                                        return FileVisitResult.CONTINUE;
                                        // skip JavaScript source maps
-                                       if (relativeP.getFileName().toString().endsWith(".map"))
+                                       if (file.getFileName().toString().endsWith(".map"))
                                                return FileVisitResult.CONTINUE;
 
                                        JarEntry entry = new JarEntry(relativeP.toString());