ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 46877] New: Taskdef uses wrong class loader
Date Thu, 19 Mar 2009 14:05:08 GMT

           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

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 (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

Configure bugmail:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message