]> source.dussan.org Git - aspectj.git/commitdiff
setting classpath for out-of-eclipse testing
authorwisberg <wisberg>
Sat, 24 May 2003 08:58:19 +0000 (08:58 +0000)
committerwisberg <wisberg>
Sat, 24 May 2003 08:58:19 +0000 (08:58 +0000)
taskdefs/testsrc/org/aspectj/tools/ant/taskdefs/Ajc11CompilerAdapterTest.java

index 0d8ea4dd4732388753b6988f1e9c13aff94aa767..8db60dad3c1ecd81ab03006e1a646efd837e8dd3 100644 (file)
@@ -82,7 +82,11 @@ public class Ajc11CompilerAdapterTest extends TestCase {
         File classesDir = FileUtil.getTempDir("Ajc11CompilerAdapterTest");
         tempFiles.add(classesDir);
         javac.setDestdir(classesDir);
-        javac.setVerbose(true);
+        javac.setVerbose(LOGGING);
+        String rtpath = "../lib/test/aspectjrt.jar";
+        File rt = new File(rtpath);
+        assertTrue("can read " + rtpath, rt.canRead());
+        javac.setClasspath(new Path(project, rt.getAbsolutePath()));
         return javac;
     }