aboutsummaryrefslogtreecommitdiffstats
path: root/build/src
diff options
context:
space:
mode:
authorwisberg <wisberg>2005-05-05 06:11:38 +0000
committerwisberg <wisberg>2005-05-05 06:11:38 +0000
commit126357c353aa710b0191daa51d70b41edfc7351e (patch)
tree564c896ebfb78505d1bd40028ec65794696a2bf3 /build/src
parent3c809f007caa6555c4866b5974b38b88944c7d04 (diff)
downloadaspectj-126357c353aa710b0191daa51d70b41edfc7351e.tar.gz
aspectj-126357c353aa710b0191daa51d70b41edfc7351e.zip
Defining parent class loader b/c ant classes not visible in Ant 1.6.x default parent.
Diffstat (limited to 'build/src')
-rw-r--r--build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java b/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java
index 31ea9e833..40c6bb3c9 100644
--- a/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java
+++ b/build/src/org/aspectj/internal/tools/ant/taskdefs/AntBuilder.java
@@ -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();