https://issues.apache.org/bugzilla/show_bug.cgi?id=46877
Summary: Taskdef uses wrong class loader
Product: Ant
Version: 1.7.1
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Core tasks
AssignedTo: [email protected]
ReportedBy: [email protected]
I am running Ant via the API, and I have ant.jar and ant-contrib.jar loading in
separate class loaders. The problem is that taskdef tasks can't find the
ant-contrib classes. I've tried calling project.setCoreLoader(ClassLoader),
and I've also tried setting the thread's context class loader. Nothing works.
I looked in the code, and the root of the problem seems to be on line 335 of
Project.java (in version 1.7.1, anyway). The createClassLoader(Path) method
uses the Project class's class loader rather than the core class loader for the
parent.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.