Return-Path: Delivered-To: apmail-ant-notifications-archive@minotaur.apache.org Received: (qmail 84359 invoked from network); 19 Mar 2009 14:05:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Mar 2009 14:05:32 -0000 Received: (qmail 15530 invoked by uid 500); 19 Mar 2009 14:05:32 -0000 Delivered-To: apmail-ant-notifications-archive@ant.apache.org Received: (qmail 15486 invoked by uid 500); 19 Mar 2009 14:05:31 -0000 Mailing-List: contact notifications-help@ant.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ant.apache.org Delivered-To: mailing list notifications@ant.apache.org Received: (qmail 15468 invoked by uid 99); 19 Mar 2009 14:05:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 07:05:31 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Mar 2009 14:05:29 +0000 Received: by brutus.apache.org (Postfix, from userid 33) id 05ADA234C004; Thu, 19 Mar 2009 07:05:08 -0700 (PDT) From: bugzilla@apache.org To: notifications@ant.apache.org Subject: DO NOT REPLY [Bug 46877] New: Taskdef uses wrong class loader X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: newchanged X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ant X-Bugzilla-Component: Core tasks X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: adam_crume@ctsinc.biz X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: notifications@ant.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Date: Thu, 19 Mar 2009 07:05:08 -0700 (PDT) X-Virus-Checked: Checked by ClamAV on apache.org 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.