Skip JavaScript source maps
authorMathieu Baudier <mbaudier@argeo.org>
Thu, 14 Sep 2023 05:00:14 +0000 (07:00 +0200)
committerMathieu Baudier <mbaudier@argeo.org>
Thu, 14 Sep 2023 05:00:14 +0000 (07:00 +0200)
src/org/argeo/build/Make.java

index 2568d9baebb2c145dc01ac87377faba0ab8f9d1a..8c9dadd64105823acc96f2c0bb8be61439c0134e 100644 (file)
@@ -510,6 +510,10 @@ public class Make {
                                        for (PathMatcher exclude : excludes)
                                                if (exclude.matches(relativeP))
                                                        return FileVisitResult.CONTINUE;
+                                       // skip JavaScript source maps
+                                       if (relativeP.getFileName().toString().endsWith(".map"))
+                                               return FileVisitResult.CONTINUE;
+
                                        JarEntry entry = new JarEntry(relativeP.toString());
                                        jarOut.putNextEntry(entry);
                                        Files.copy(file, jarOut);
@@ -548,7 +552,7 @@ public class Make {
                                        copySourcesToJar(srcP, jarOut, "OSGI-OPT/src/");
                                }
                        }
-                       
+
                        // add legal notices and licenses
                        for (Path p : listLegalFilesToInclude(source).values()) {
                                jarOut.putNextEntry(new JarEntry(p.getFileName().toString()));