]> source.dussan.org Git - aspectj.git/commitdiff
Defining parent class loader b/c ant classes not visible in Ant 1.6.x default parent.
authorwisberg <wisberg>
Thu, 5 May 2005 06:11:38 +0000 (06:11 +0000)
committerwisberg <wisberg>
Thu, 5 May 2005 06:11:38 +0000 (06:11 +0000)
build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java

index 31ea9e833b412c4c8a66d040ae2947bf60610d80..40c6bb3c9d366276b41768eaaa5b2b7b5775715f 100644 (file)
@@ -616,7 +616,9 @@ public class AntBuilder extends Builder {
             String url = null;
             try {
                 url = "file:" + toolsJar.toString().replace('\\', '/');
-                ClassLoader loader = new URLClassLoader(new URL[] {new URL(url)});
+                URL[] cp = new URL[] {new URL(url)};
+                ClassLoader parent = Task.class.getClassLoader();
+                ClassLoader loader = new URLClassLoader(cp, parent);
                 Class c = loader.loadClass(AJCTASK);
                 task = c.newInstance();
                 Project project = javac.getProject();