Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 42121 invoked from network); 18 Jun 2008 16:59:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jun 2008 16:59:29 -0000 Received: (qmail 33264 invoked by uid 500); 18 Jun 2008 16:59:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 33228 invoked by uid 500); 18 Jun 2008 16:59:28 -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 33217 invoked by uid 99); 18 Jun 2008 16:59:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2008 09:59:28 -0700 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [192.6.10.60] (HELO tobor.hpl.hp.com) (192.6.10.60) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jun 2008 16:58:36 +0000 Received: from localhost (localhost [127.0.0.1]) by tobor.hpl.hp.com (Postfix) with ESMTP id CC8B9B7B64 for ; Wed, 18 Jun 2008 17:58:38 +0100 (BST) X-Virus-Scanned: amavisd-new at hplb.hpl.hp.com Received: from tobor.hpl.hp.com ([127.0.0.1]) by localhost (tobor.hpl.hp.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id V5Ja701wpV5V for ; Wed, 18 Jun 2008 17:58:31 +0100 (BST) Received: from ha-node-br2.hpl.hp.com (ha-node-br2.hpl.hp.com [16.25.144.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tobor.hpl.hp.com (Postfix) with ESMTPS id 0377AB7B62 for ; Wed, 18 Jun 2008 17:58:25 +0100 (BST) MailScanner-NULL-Check: 1214413082.12319@80NO7ogWHGGAi9D2IRbI0g Received: from [16.25.171.118] (morzine.hpl.hp.com [16.25.171.118]) by ha-node-br2.hpl.hp.com (8.14.1/8.13.4) with ESMTP id m5IGw0BH010821 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 18 Jun 2008 17:58:00 +0100 (BST) Message-ID: <48593EA2.20306@apache.org> Date: Wed, 18 Jun 2008 17:58:10 +0100 From: Steve Loughran User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: Ant Users List Subject: Re: Classloader reuse for tasks References: <48591831.80307@gmail.com> In-Reply-To: <48591831.80307@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-HPL-MailScanner-Information: Please contact the ISP for more information X-MailScanner-ID: m5IGw0BH010821 X-HPL-MailScanner: Found to be clean X-HPL-MailScanner-From: stevel@apache.org X-Virus-Checked: Checked by ClamAV on apache.org Lucian Chirita wrote: > Is there a way to reuse a classloader across several tasks? All > the tasks refer the same classpath ID, and have fork="false". > > I thought setting ant.reuse.loader would take care of this, but it > doesn't because the task does not use ClasspathUtil to Java tries to isolate stuff, probably more than you want, to try and create better isolation and less memory leaks. So no, I dont think you can do this. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org