diff options
author | mwebster <mwebster> | 2006-08-16 14:51:35 +0000 |
---|---|---|
committer | mwebster <mwebster> | 2006-08-16 14:51:35 +0000 |
commit | bf17ebb5bbb02bb0279122b965d9af713fd59005 (patch) | |
tree | 1ce289428ca3a99ecc0428fd3d150c207bd283db /testing-client | |
parent | f37ab9ecfd9e34a7957eafba8e7bf577710ac18b (diff) | |
download | aspectj-bf17ebb5bbb02bb0279122b965d9af713fd59005.tar.gz aspectj-bf17ebb5bbb02bb0279122b965d9af713fd59005.zip |
Bug 153907 "Facilitate LTW testing in a custom ClassLoader hierarchy" (2nd attempt to get classpath right)
Diffstat (limited to 'testing-client')
-rw-r--r-- | testing-client/src/org/aspectj/testing/server/TestServer.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/testing-client/src/org/aspectj/testing/server/TestServer.java b/testing-client/src/org/aspectj/testing/server/TestServer.java index c21aeed97..74edd3617 100644 --- a/testing-client/src/org/aspectj/testing/server/TestServer.java +++ b/testing-client/src/org/aspectj/testing/server/TestServer.java @@ -87,6 +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); loaders.put(name,loader); } @@ -102,13 +103,13 @@ 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.initialize() " + url); + if (debug) System.err.println("? TestServer.createRootLoader() " + url); String file = url.getFile(); - if (file.indexOf("runtime") != -1 || file.indexOf("aspectj5rt") != -1) { + if (file.indexOf("runtime") != -1 || file.indexOf("aspectjrt") != -1 || file.indexOf("aspectj5rt") != -1) { urlList.add(url); } } - if (debug) System.err.println("? TestServer.initialize() urlList=" + urlList); + if (debug) System.err.println("? TestServer.createRootLoader() urlList=" + urlList); urls = new URL[urlList.size()]; urlList.toArray(urls); |