From user-return-51553-apmail-ant-user-archive=ant.apache.org@ant.apache.org Wed Aug 03 17:57:20 2005 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 47049 invoked from network); 3 Aug 2005 17:57:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Aug 2005 17:57:19 -0000 Received: (qmail 61516 invoked by uid 500); 3 Aug 2005 17:57:00 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 61332 invoked by uid 500); 3 Aug 2005 17:56:59 -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 61307 invoked by uid 99); 3 Aug 2005 17:56:59 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2005 10:56:59 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [69.20.112.2] (HELO gate2.excedent.us) (69.20.112.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Aug 2005 10:56:49 -0700 Received: from jackie (CPE000f66366977-CM0013711451aa.cpe.net.cable.rogers.com [69.199.52.234]) by gate2.excedent.us (SMTP Server) with ESMTP id 395D4B9EEE for ; Wed, 3 Aug 2005 13:56:57 -0400 (EDT) From: "Moran Ben-David" To: "'Ant Users List'" Subject: RE: Adding to ant's classpath from an ant build script Date: Wed, 3 Aug 2005 13:57:12 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook, Build 11.0.6353 In-Reply-To: <4111.1123085798@www61.gmx.net> Thread-Index: AcWYSBBkuO6sAh6aQYqbqzRUr8fQvQADHRDg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 Message-Id: <20050803175657.395D4B9EEE@gate2.excedent.us> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thank you, Antoine. I used the following worked like a charm. Moran > -----Original Message----- > From: Antoine Levy-Lambert [mailto:antoine@gmx.de] > Sent: Wednesday, August 03, 2005 12:17 PM > To: Ant Users List > Subject: Re: Adding to ant's classpath from an ant build script >=20 > Hello Moran, >=20 > if your use case does not bring you in the delegating class loader = case, > you can use the classpath attribute of the task (actually > documented under typedef, because taskdef is an extension of = ). >=20 > Cheers, >=20 > Antoine >=20 > > --- Urspr=FCngliche Nachricht --- > > Von: "Moran Ben-David" > > An: "'Ant Users List'" > > Betreff: Adding to ant's classpath from an ant build script > > Datum: Wed, 3 Aug 2005 11:56:34 -0400 > > > > I have a custom Ant task in a jar file (custom.jar) that I would = like to > > use > > in my ant build.xml. > > > > However, I would like to add this jar to the ant runtime only during = the > > execution of my script. Is there a way I can tell ant to include = this > jar > > (/home/me/custom.jar) in its classpath from my build.xml? > > > > I don't want to copy the file to the ant/lib directory. Instead, I = just > > want to expose it for my script alone. > > > > Thanks in advance, > > Moran Ben-David > > > > > > = --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > > >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org