Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 49E0F11032 for ; Tue, 15 Apr 2014 07:23:31 +0000 (UTC) Received: (qmail 20610 invoked by uid 500); 15 Apr 2014 07:23:30 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 20420 invoked by uid 500); 15 Apr 2014 07:23:29 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 20412 invoked by uid 99); 15 Apr 2014 07:23:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 07:23:27 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of uncommonnonsense@gmail.com designates 209.85.215.47 as permitted sender) Received: from [209.85.215.47] (HELO mail-la0-f47.google.com) (209.85.215.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Apr 2014 07:23:22 +0000 Received: by mail-la0-f47.google.com with SMTP id pn19so6574912lab.34 for ; Tue, 15 Apr 2014 00:23:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=C2HIDMS2uM4YJsRdhFxIrtVReB96EbvdQOgr2Yo/zbA=; b=Ef0YZ/iUrOC4id0FA92okmquZEIoqs+rf+wR2Ubva8mCBVY66B4MxQYWkKbd9W4G3S S1YeDUesByNf6712+8lSaPsLVvQxrg61EoK98nrNBVPbXv/I8pEbXWyRzgl9Qo6Nx8SF Q0bferyMoYMbSvxHzHSmPWMLLC7q8IvjyTvKqbqpSP3gKA120HdI+ZHhpomoUPPZwB95 hN9XRZmF+f0bO80HI2dhMPKj4bXLltIrpeHu4JtdG+LPUxo9N2F8JZVhfZzU13Athg5g 2CqXOTtNRxn2WVsNXxJdE7QxCZfXOxItaFrQSHG0KZv1QXsdQuxhlYh9kKF8tZWVljXJ GL7w== X-Received: by 10.152.87.14 with SMTP id t14mr131079laz.52.1397546580466; Tue, 15 Apr 2014 00:23:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.125.41 with HTTP; Tue, 15 Apr 2014 00:22:40 -0700 (PDT) In-Reply-To: References: From: Edoardo Vacchi Date: Tue, 15 Apr 2014 09:22:40 +0200 Message-ID: Subject: Re: ClassLoader classpath of a TaskDef'd task To: user@ant.apache.org Content-Type: multipart/alternative; boundary=001a11c34f227c618a04f70fab6f X-Virus-Checked: Checked by ClamAV on apache.org --001a11c34f227c618a04f70fab6f Content-Type: text/plain; charset=UTF-8 Please notice that I am having the problem in *netbeans*! the problem seems not to be occurring from the CLI On Tue, Apr 15, 2014 at 9:10 AM, Edoardo Vacchi wrote: > My taskdef'd task uses > Thread.currentThread().getContextClassLoader(); > to load dynamically a series of classes *during* the execution of the task > itself. These classes are actually the same jar of the task implementation. > > Now, if I put my jars in ~/.ant/lib the task works. If I use > > ... > > > where classpath points to the ./lib/* folder of the project, the task *is* > found, but the classloader fails to load the classes. I suppose that ant is > changing the classloader for the task's thread. How can I pass the > information down to the task's classloader? > > thanks > > --001a11c34f227c618a04f70fab6f--