You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2009/03/19 15:05:08 UTC
DO NOT REPLY [Bug 46877] New: Taskdef uses wrong class loader
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: notifications@ant.apache.org
ReportedBy: adam_crume@ctsinc.biz
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.