projects
/
cc0
/
argeo-build.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
199fe0d
)
Skip *.js source directories
author
Mathieu Baudier <mbaudier@argeo.org>
Tue, 29 Aug 2023 08:25:17 +0000
(10:25 +0200)
committer
Mathieu Baudier <mbaudier@argeo.org>
Tue, 29 Aug 2023 08:25:17 +0000
(10:25 +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 8e872dcb61af818ea71946b4369197eaf6e7ddc4..cfedf9a06912e5a74fcc4fd1ccd30315c5f81940 100644
(file)
--- a/
src/org/argeo/build/Make.java
+++ b/
src/org/argeo/build/Make.java
@@
-508,6
+508,15
@@
public class Make {
// Add all resources from src/
Files.walkFileTree(srcP, new SimpleFileVisitor<Path>() {
// Add all resources from src/
Files.walkFileTree(srcP, new SimpleFileVisitor<Path>() {
+ @Override
+ public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
+ // skip directories ending with .js
+ // TODO find something more robust?
+ if (dir.getFileName().toString().endsWith(".js"))
+ return FileVisitResult.SKIP_SUBTREE;
+ return super.preVisitDirectory(dir, attrs);
+ }
+
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
if (file.getFileName().toString().endsWith(".java")
@Override
public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IOException {
if (file.getFileName().toString().endsWith(".java")
@@
-518,16
+527,6
@@
public class Make {
Files.copy(file, jarOut);
return FileVisitResult.CONTINUE;
}
Files.copy(file, jarOut);
return FileVisitResult.CONTINUE;
}
-
- @Override
- public FileVisitResult preVisitDirectory(Path dir, BasicFileAttributes attrs) throws IOException {
- // skip directories ending with .js
- // TODO find something more robust?
- if (dir.getFileName().endsWith(".js"))
- return FileVisitResult.SKIP_SUBTREE;
- return super.preVisitDirectory(dir, attrs);
- }
-
});
// add legal notices and licenses
});
// add legal notices and licenses