Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 21553 invoked from network); 2 Mar 2007 09:40:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Mar 2007 09:40:30 -0000 Received: (qmail 59159 invoked by uid 500); 2 Mar 2007 09:40:35 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 59124 invoked by uid 500); 2 Mar 2007 09:40:34 -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 59113 invoked by uid 99); 2 Mar 2007 09:40:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 01:40:34 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of david.corley@ericsson.com designates 193.180.251.62 as permitted sender) Received: from [193.180.251.62] (HELO mailgw4.ericsson.se) (193.180.251.62) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 01:40:22 -0800 Received: from mailgw4.ericsson.se (unknown [127.0.0.1]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id A9961216A6; Fri, 2 Mar 2007 10:39:31 +0100 (CET) X-AuditID: c1b4fb3e-a96edbb000004aff-c5-45e7f0d31192 Received: from esealmw128.eemea.ericsson.se (unknown [153.88.254.121]) by mailgw4.ericsson.se (Symantec Mail Security) with ESMTP id 85C352157A; Fri, 2 Mar 2007 10:39:31 +0100 (CET) Received: from esealmw120.eemea.ericsson.se ([153.88.200.79]) by esealmw128.eemea.ericsson.se with Microsoft SMTPSVC(6.0.3790.1830); Fri, 2 Mar 2007 10:39:31 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Specifying additonal classpath elements when calling the task Date: Fri, 2 Mar 2007 10:39:29 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Specifying additonal classpath elements when calling the task Thread-Index: AcdcCELg8AfdJJtfR4y6KOuJvZI0vwAM/E8gAByLbKA= From: "David Corley \(AT/LMI\)" To: "Ant Users List" , X-OriginalArrivalTime: 02 Mar 2007 09:39:31.0411 (UTC) FILETIME=[ADD94230:01C75CAE] X-Brightmail-Tracker: AAAAAA== X-Virus-Checked: Checked by ClamAV on apache.org Hey Rainer, Thanks for the pointer, but that tool still doesn't cover my problem.=20 My basic need is have something like a nested element for the task.=20 I can't specify either of the javamail or jaf jars using taskdef, because they don't contain ant tasks.=20 This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you. E-mail including attachments is susceptible to data corruption, interception, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof. -----Original Message----- From: Rainer Noack [mailto:rainer@noacks.net]=20 Sent: 01 March 2007 20:03 To: 'Ant Users List' Subject: RE: Specifying additonal classpath elements when calling the task Maybe http://enitsys.sourceforge.net/ant-classloadertask/ what you are looking for. It allows you to add jars to the project-classloader. cheers=20 Rainer > -----Original Message----- > From: David Corley (AT/LMI) [mailto:david.corley@ericsson.com] > Sent: Thursday, March 01, 2007 2:48 PM > To: user@ant.apache.org > Subject: Specifying additonal classpath elements when calling the=20 > task >=20 >=20 > I'm wondering if anyone knows a way to specify additional jars for use > by an task within an ant buildfile. >=20 > My current setup involves 2 build files, builda.xml and buildb.xml.=20 > Builda.xml runs an task to kick-off buildb.xml. This a=20 > multiproject setup. > There are many users having their own custom builda.xml, but they all=20 > call the same buildb.xml. >=20 > The problem is this: > In buildb.xml, I make use of Ant's task, which requires the=20 > javamail and jaf jars from sun. From what I can tell, the only way to=20 > get them on the classpath is to either: > A) add from the command line with -lib > B) drop them into the /ant/lib directory. >=20 > Neither of the above is entirely practical for our setup. We would=20 > have to change every build script for the -lib option, and not every=20 > user uses the same ant installation, so dropping the jars into the=20 > ant/lib directory isn't entirely practical, as well as the fact we=20 > want to separate 3rd party jars for version control purposes. >=20 > So basically, I'd like to run my buildb.xml and specify additional=20 > jars to be added to it's classpath that are not in builda.xml. (I know > I can use inheritall/inheritref attributes in the task and=20 > specify the jars in the builda classpath, but I specifically only want > the jars to be used by buildb) >=20 > An suggestions/ideas? >=20 > /Dave >=20 > This communication is confidential and intended solely for the=20 > addressee(s). Any unauthorized review, use, disclosure or distribution > is prohibited. If you believe this message has been sent to you in=20 > error, please notify the sender by replying to this transmission and=20 > delete the message without disclosing it. Thank you. E-mail including=20 > attachments is susceptible to data corruption, interception,=20 > unauthorized amendment, tampering and viruses, and we only send and=20 > receive e-mails on the basis that we are not liable for any such=20 > corruption, interception, amendment, tampering or viruses or any=20 > consequences thereof. >=20 >=20 >=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