ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 46877] New: Taskdef uses wrong class loader
Date Thu, 19 Mar 2009 14:05:08 GMT
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.

Mime
View raw message