diff options
author | wisberg <wisberg> | 2003-05-24 11:12:42 +0000 |
---|---|---|
committer | wisberg <wisberg> | 2003-05-24 11:12:42 +0000 |
commit | 5afb6a743ae0f722a672140ff6c4296fc904e2b9 (patch) | |
tree | 02dbd63094cf5f6df2e9f26dcb9e5bde1f97dacd /build | |
parent | dd07fb818bd05c9c169a7ca1b757a9601cd0bf90 (diff) | |
download | aspectj-5afb6a743ae0f722a672140ff6c4296fc904e2b9.tar.gz aspectj-5afb6a743ae0f722a672140ff6c4296fc904e2b9.zip |
To support the new testing ICommand wrapper for AjcTask, permit ant.jar in a testing module (ant is omitted from non-testing modules because it is normally deployed separately in ant/lib/ant.jar).
This does not affect regular module or product builds.
Diffstat (limited to 'build')
-rw-r--r-- | build/src/org/aspectj/internal/tools/build/Module.java | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/build/src/org/aspectj/internal/tools/build/Module.java b/build/src/org/aspectj/internal/tools/build/Module.java index a1ce56942..4233bf1c9 100644 --- a/build/src/org/aspectj/internal/tools/build/Module.java +++ b/build/src/org/aspectj/internal/tools/build/Module.java @@ -97,7 +97,7 @@ public class Module { for (Iterator iter = module.getLibJars().iterator(); iter.hasNext();) { File libJar = (File) iter.next(); - if (!skipLibraryJarAntecedant(libJar) + if (!skipLibraryJarAntecedant(module, libJar) && !known.contains(libJar)) { // XXX what if same referent, diff path... known.add(libJar); } @@ -113,13 +113,17 @@ public class Module { } } - /** XXX gack explicitly skip Ant */ - private static boolean skipLibraryJarAntecedant(File libJar) { + /** XXX gack explicitly skip Ant except for testing... modules */ + private static boolean skipLibraryJarAntecedant(Module module, File libJar) { if (null == libJar) { return true; } - String path = libJar.getPath().replace('\\', '/'); - return (-1 != path.indexOf("/lib/ant/lib/")); + if (!module.name.startsWith("testing")) { + String path = libJar.getPath().replace('\\', '/'); + path = path.replace(File.separatorChar, '/'); + return (-1 != path.indexOf("/lib/ant/lib/")); + } + return false; } /** XXX gack explicitly skip runtime */ |