projects
/
cc0
/
argeo-build.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
ad64cd0
)
Skip JavaScript source maps
author
Mathieu Baudier <mbaudier@argeo.org>
Thu, 14 Sep 2023 05:00:14 +0000
(07:00 +0200)
committer
Mathieu Baudier <mbaudier@argeo.org>
Thu, 14 Sep 2023 05:00:14 +0000
(07:00 +0200)
src/org/argeo/build/Make.java
patch
|
blob
|
history
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()));