]> source.dussan.org Git - aspectj.git/commitdiff
Classpath set for running tests on build machine
authoraclement <aclement>
Thu, 23 Jun 2005 08:42:08 +0000 (08:42 +0000)
committeraclement <aclement>
Thu, 23 Jun 2005 08:42:08 +0000 (08:42 +0000)
org.aspectj.ajdt.core/testsrc/org/aspectj/tools/ajc/Ajc.java

index fd5a2f40d8ab07eeac419c2ba8595a949977dfe1..afbd3f0e86ecae3f344a40b62c060c9ad928f643 100644 (file)
@@ -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;