aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorwisberg <wisberg>2002-12-18 19:45:04 +0000
committerwisberg <wisberg>2002-12-18 19:45:04 +0000
commitbe59c67a76a1772974982402348458e7522cfe55 (patch)
tree8fda3787d8ac6e565f41fbfec9451b84fa9b228a /build
parent5a7bc25b4b40774f99915448efdcc2adab626a4e (diff)
downloadaspectj-be59c67a76a1772974982402348458e7522cfe55.tar.gz
aspectj-be59c67a76a1772974982402348458e7522cfe55.zip
XXX always exclude Ant and runtime classes from assemblages - hack.
Diffstat (limited to 'build')
-rw-r--r--build/src/org/aspectj/internal/tools/build/Module.java14
1 files changed, 12 insertions, 2 deletions
diff --git a/build/src/org/aspectj/internal/tools/build/Module.java b/build/src/org/aspectj/internal/tools/build/Module.java
index 9c6022d18..984c330d8 100644
--- a/build/src/org/aspectj/internal/tools/build/Module.java
+++ b/build/src/org/aspectj/internal/tools/build/Module.java
@@ -97,7 +97,8 @@ public class Module {
for (Iterator iter = module.getRequired().iterator(); iter.hasNext();) {
Module required = (Module) iter.next();
File requiredJar = required.getModuleJar();
- if (!known.contains(requiredJar)) {
+ if (!skipModuleJarAntecedant(requiredJar)
+ && !known.contains(requiredJar)) {
known.add(requiredJar);
doFindKnownJarAntecedants(required, known);
}
@@ -110,7 +111,16 @@ public class Module {
return true;
}
String path = libJar.getPath().replace('\\', '/');
- return (-1 == path.indexOf("/lib/ant/lib/"));
+ return (-1 != path.indexOf("/lib/ant/lib/"));
+ }
+
+ /** XXX gack explicitly skip runtime */
+ private static boolean skipModuleJarAntecedant(File requiredJar) {
+ if (null == requiredJar) {
+ return true;
+ } else {
+ return "runtime.jar".equals(requiredJar.getName());
+ }
}
/**@return true if this is a source file */