]> source.dussan.org Git - aspectj.git/commitdiff
- added info line on failure with TestClassLoader classpath
authorwisberg <wisberg>
Mon, 6 Jan 2003 22:47:13 +0000 (22:47 +0000)
committerwisberg <wisberg>
Mon, 6 Jan 2003 22:47:13 +0000 (22:47 +0000)
testing/src/org/aspectj/testing/harness/bridge/JavaRun.java

index 5d7dd70106099d4cae6ee877b65e3be2886253ca..c28c7548959a5eba8880edaec2828b9f4e4d222f 100644 (file)
@@ -76,12 +76,13 @@ public class JavaRun implements IAjcRun {
         if (!LangUtil.isEmpty(spec.dirChanges)) {
             MessageUtil.info(status, "XXX dirChanges not implemented in JavaRun");
         }
+        TestClassLoader loader = null;
         try {
             final boolean readable = true;
             File[] libs = sandbox.getClasspathJars(readable, this);
             URL[] urls = FileUtil.getFileURLs(libs);
             File[] dirs = sandbox.getClasspathDirectories(readable, this);
-            ClassLoader loader = new TestClassLoader(urls, dirs);
+            loader = new TestClassLoader(urls, dirs);
             // make the following load test optional
             // Class testAspect = loader.loadClass("org.aspectj.lang.JoinPoint");
             targetClass = loader.loadClass(spec.className);
@@ -97,7 +98,8 @@ public class JavaRun implements IAjcRun {
             if (!completedNormally) {
                 MessageUtil.info(status, spec.toLongString());
                 MessageUtil.info(status, "targetClass: " + targetClass);
-                MessageUtil.info(status, "" + sandbox);
+                MessageUtil.info(status, "sandbox: " + sandbox);
+                MessageUtil.info(status, "loader: " + loader);
             }
         }
         return completedNormally;