projects
/
cc0
/
argeo-build.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Skip JavaScript source maps
[cc0/argeo-build.git]
/
src
/
org
/
argeo
/
build
/
Make.java
diff --git
a/src/org/argeo/build/Make.java
b/src/org/argeo/build/Make.java
index 2568d9baebb2c145dc01ac87377faba0ab8f9d1a..8c9dadd64105823acc96f2c0bb8be61439c0134e 100644
(file)
--- 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;
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);
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/");
}
}
copySourcesToJar(srcP, jarOut, "OSGI-OPT/src/");
}
}
-
+
// add legal notices and licenses
for (Path p : listLegalFilesToInclude(source).values()) {
jarOut.putNextEntry(new JarEntry(p.getFileName().toString()));
// add legal notices and licenses
for (Path p : listLegalFilesToInclude(source).values()) {
jarOut.putNextEntry(new JarEntry(p.getFileName().toString()));