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);
copySourcesToJar(srcP, jarOut, "OSGI-OPT/src/");
}
}
-
+
// add legal notices and licenses
for (Path p : listLegalFilesToInclude(source).values()) {
jarOut.putNextEntry(new JarEntry(p.getFileName().toString()));