aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorwisberg <wisberg>2003-01-06 22:47:13 +0000
committerwisberg <wisberg>2003-01-06 22:47:13 +0000
commitab0c82f47549b2631fb7e2572948deeb385959ad (patch)
treebcff99b0fe6b188598875eeb6e09753bdc8b8adc /testing
parent89997f3c4660c10e902cf74256ee922e79b0c7e4 (diff)
downloadaspectj-ab0c82f47549b2631fb7e2572948deeb385959ad.tar.gz
aspectj-ab0c82f47549b2631fb7e2572948deeb385959ad.zip
- added info line on failure with TestClassLoader classpath
Diffstat (limited to 'testing')
-rw-r--r--testing/src/org/aspectj/testing/harness/bridge/JavaRun.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/src/org/aspectj/testing/harness/bridge/JavaRun.java b/testing/src/org/aspectj/testing/harness/bridge/JavaRun.java
index 5d7dd7010..c28c75489 100644
--- a/testing/src/org/aspectj/testing/harness/bridge/JavaRun.java
+++ b/testing/src/org/aspectj/testing/harness/bridge/JavaRun.java
@@ -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;