aboutsummaryrefslogtreecommitdiffstats
path: root/testing-client
diff options
context:
space:
mode:
authormwebster <mwebster>2006-08-17 10:10:08 +0000
committermwebster <mwebster>2006-08-17 10:10:08 +0000
commitf4566cf38517f789d676a72a61ec050806dbc69e (patch)
tree8fa332c496bce3413ec011bd12d09cc59f11069c /testing-client
parent4ce6cb8b0cd79d8ba746473af86a76774755b6b8 (diff)
downloadaspectj-f4566cf38517f789d676a72a61ec050806dbc69e.tar.gz
aspectj-f4566cf38517f789d676a72a61ec050806dbc69e.zip
Bug 153907 "Facilitate LTW testing in a custom ClassLoader hierarchy" (determine why the hell we can't find org/aspectj/runtime/internal/AroundClosure)
Diffstat (limited to 'testing-client')
-rw-r--r--testing-client/src/org/aspectj/testing/server/TestServer.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/testing-client/src/org/aspectj/testing/server/TestServer.java b/testing-client/src/org/aspectj/testing/server/TestServer.java
index 74edd3617..b7ac11c0a 100644
--- a/testing-client/src/org/aspectj/testing/server/TestServer.java
+++ b/testing-client/src/org/aspectj/testing/server/TestServer.java
@@ -27,7 +27,7 @@ import java.util.StringTokenizer;
public class TestServer implements Runnable {
- private static final boolean debug = false;
+ private static final boolean debug = true;
private boolean exitOnError = true;
private File workingDirectory;
@@ -87,7 +87,7 @@ public class TestServer implements Runnable {
URL[] urls = new URL[urlList.size()];
urlList.toArray(urls);
ClassLoader loader = new URLClassLoader(urls, parent);
- if (debug) System.err.println("TestServer.createLoader() loader=" + loader + ", name='" + name + "', urls=" + urlList);
+ if (debug) System.err.println("? TestServer.createLoader() loader=" + loader + ", name='" + name + "', urls=" + urlList + ", parent=" + parent);
loaders.put(name,loader);
}
@@ -103,19 +103,18 @@ public class TestServer implements Runnable {
URL[] urls = ((URLClassLoader)getClass().getClassLoader()).getURLs();
for (int i = 0; i < urls.length; i++) {
url = urls[i];
- if (debug) System.err.println("? TestServer.createRootLoader() " + url);
String file = url.getFile();
+ if (debug) System.err.println("? TestServer.createRootLoader() " + file);
if (file.indexOf("runtime") != -1 || file.indexOf("aspectjrt") != -1 || file.indexOf("aspectj5rt") != -1) {
urlList.add(url);
}
}
- if (debug) System.err.println("? TestServer.createRootLoader() urlList=" + urlList);
urls = new URL[urlList.size()];
urlList.toArray(urls);
ClassLoader parent = getClass().getClassLoader().getParent();
rootLoader = new URLClassLoader(urls,parent);
-
+ if (debug) System.err.println("? TestServer.createRootLoader() loader=" + rootLoader + ", urlList=" + urlList + ", parent=" + parent);
}
public void setExitOntError (boolean b) {