From user-return-37465-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu Oct 02 08:44:05 2003 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 34737 invoked from network); 2 Oct 2003 08:44:05 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 2 Oct 2003 08:44:05 -0000 Received: (qmail 93077 invoked by uid 500); 2 Oct 2003 08:43:30 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 93042 invoked by uid 500); 2 Oct 2003 08:43:30 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 93029 invoked from network); 2 Oct 2003 08:43:29 -0000 Received: from unknown (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by daedalus.apache.org with SMTP; 2 Oct 2003 08:43:29 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id h928hd5O002224 for ; Thu, 2 Oct 2003 10:43:39 +0200 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2653.19) id <4BFC9R74>; Thu, 2 Oct 2003 10:43:41 +0200 Message-ID: <879A5AD5DD0ED511891F0003473A9B5608FF70CB@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: RE: non-Filelist list of jars Date: Thu, 2 Oct 2003 10:43:39 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C388C1.46E56410" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C388C1.46E56410 Content-Type: text/plain; charset="iso-8859-1" > I'm looking for a way to deal with a list of properties which specify > jars that I want to (a) include on a classpath and (b) copy > to a deploy > directory. > > I've got two build.properties files that I import: > > (1) puts the full pathname of jars into properties: > xercesImpl.jar=D:/xerces-2_3_0/xercesImpl.jar > xmlParserAPIs.jar=D:/xerces-2_3_0/xmlParserAPIs.jar > jaxb-api.jar=F:/java/jwsdp-1.2/jaxb/lib/jaxb-api.jar > > (2) creates a property which is a list of some of those jars: > external.jars=${commons-digester.jar},${commons-validator.jar} > ,${jaxb-api.jar} > > When I've loaded 1 & 2, my ${external.jars} becomes a comma-seperated > list of jars with full pathnames. > > Now I want to use ${external.jars} as input for my compile > task, since > the jars I specify there all have to be on the classpath, and I also > want my deploy task to copy the jars listed in > ${external.jars} to the > deploy directory. > You'll notice that in (1) the jars could be anywhere, i.e. > not relative > to one point on a harddrive, which rules out filelists and filesets. > > Can I iterate over my ${external.jars} in some way? Is there another > approach I could take? AntContrib: foreach supports comma separated lists. > The reason why I am doing this is essentially to allow different > projects and different developers to pick and choose the jars > they need > from a pre-prepared list (my first build.properties file > above), without > having to modify the build.xml tasks. Aehmmm there was a discussion earlier about getting libraries ... Maven has support for autodownload, and something on that topic was discussed. Jan ------_=_NextPart_001_01C388C1.46E56410--