From: Mathieu Baudier Date: Thu, 14 Sep 2023 05:00:14 +0000 (+0200) Subject: Skip JavaScript source maps X-Git-Tag: v2.3.8~17 X-Git-Url: https://git.argeo.org/?p=cc0%2Fargeo-build.git;a=commitdiff_plain;h=a0a60df874ab380a45619c738137a0080fd5fd4a Skip JavaScript source maps --- diff --git a/src/org/argeo/build/Make.java b/src/org/argeo/build/Make.java index 2568d9b..8c9dadd 100644 --- a/src/org/argeo/build/Make.java +++ b/src/org/argeo/build/Make.java @@ -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()));