diff options
author | aclement <aclement> | 2005-06-23 08:42:08 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-06-23 08:42:08 +0000 |
commit | e3f82f61e138abca72a726b9e22fa26e67c9b757 (patch) | |
tree | a643e3611bbadea1afc039704ed58888cacd87b7 /org.aspectj.ajdt.core | |
parent | a951b059a51343535a56e4cac57b7dc7bcc8ceba (diff) | |
download | aspectj-e3f82f61e138abca72a726b9e22fa26e67c9b757.tar.gz aspectj-e3f82f61e138abca72a726b9e22fa26e67c9b757.zip |
Classpath set for running tests on build machine
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java index fd5a2f40d..afbd3f0e8 100644 --- a/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java +++ b/org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java @@ -43,20 +43,26 @@ import org.aspectj.util.FileUtil; public class Ajc { private static final String SANDBOX_NAME = "ajcSandbox"; + private static final String TESTER_PATH = - ".."+File.separator+"testing-client"+File.separator+"bin" + File.pathSeparator + - ".."+File.separator+"runtime"+File.separator+"bin" + File.pathSeparator + - //TODO AV - done, remove comments: can someone tell why those jar needs to be there ?? - // 1/ see the line before: bin/ will take precedence.. - // 2/ see below - aspectj5rt is added last which makes it UNconsistent with the way runtime is handled here.. - //".."+File.separator+"lib"+File.separator+"test"+File.separator+"aspectjrt.jar"+ File.pathSeparator+ - //".."+File.separator+"lib"+File.separator+"test"+File.separator+"testing-client.jar" + File.pathSeparator + - ".."+File.separator+"aspectj5rt"+File.separator+"bin" + File.pathSeparator - + File.pathSeparator+ ".."+File.separator+"lib"+File.separator+"junit"+File.separator+"junit.jar" - + File.pathSeparator+ ".."+File.separator+"bridge"+File.separator+"bin" - + File.pathSeparator+ ".."+File.separator+"loadtime"+File.separator+"bin" + ".."+File.separator+"testing-client"+File.separator+"bin" + + File.pathSeparator+".."+File.separator+"runtime" +File.separator+"bin" + + File.pathSeparator+".."+File.separator+"aspectj5rt"+File.separator+"bin" + + File.pathSeparator+".."+File.separator+"lib" +File.separator+"junit"+File.separator+"junit.jar" + + File.pathSeparator+".."+File.separator+"bridge" +File.separator+"bin" + + File.pathSeparator+".."+File.separator+"loadtime" +File.separator+"bin" + + // When the build machine executes the tests, it is using code built into jars rather than code build into + // bin directories. This means for the necessary types to be found we have to put these jars on the classpath: + + File.pathSeparator+".."+File.separator+"aj-build"+File.separator+"jars"+File.separator+"bridge.jar" + + File.pathSeparator+".."+File.separator+"aj-build"+File.separator+"jars"+File.separator+"util.jar" + + File.pathSeparator+".."+File.separator+"lib" +File.separator+"test"+File.separator+"testing-client.jar" + // hmmm, this next one should perhaps point to an aj-build jar... + + File.pathSeparator+".."+File.separator+"lib" +File.separator+"test"+File.separator+"aspectjrt.jar" ; + + private CompilationResult result; private File sandbox; private File baseDir; |