Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 99084 invoked from network); 9 Feb 2004 07:06:42 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 9 Feb 2004 07:06:42 -0000 Received: (qmail 29708 invoked by uid 500); 9 Feb 2004 07:06:04 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 29669 invoked by uid 500); 9 Feb 2004 07:06:04 -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 29616 invoked from network); 9 Feb 2004 07:06:03 -0000 Received: from unknown (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by daedalus.apache.org with SMTP; 9 Feb 2004 07:06:03 -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 i1976Csr020531 for ; Mon, 9 Feb 2004 08:06:12 +0100 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id <1Q5T7G5R>; Mon, 9 Feb 2004 08:06:07 +0100 Message-ID: <879A5AD5DD0ED511891F0003473A9B5608FF767C@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: RE: Conditionally setting property values Date: Mon, 9 Feb 2004 08:06:13 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3EEDB.33D2D710" 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_01C3EEDB.33D2D710 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable First I try with a bundle of files windows.properties unix.properties ... Jan > -----Original Message----- > From: Antoine L=E9vy-Lambert [mailto:antoine@antbuild.com] > Sent: Saturday, February 07, 2004 11:32 AM > To: Ant Users List > Subject: Re: Conditionally setting property values >=20 >=20 > Steven Scheffler wrote: >=20 > >You can achieve the below by using the ant-contrib package. Go here > >(http://ant-contrib.sourceforge.net/) to download. > > > >Using the task you can express the if/then/else type=20 > logic you're > >looking for. > > > >-----Original Message----- > >From: Holliday, Donald B. (LNG-CSP)=20 > [mailto:Donald.Holliday@lexisnexis.com]=20 > >Sent: Friday, February 06, 2004 5:39 PM > >To: 'Ant Users List' > >Subject: Conditionally setting property values > > > >I have ant build scripts that need to run on both Win2K and=20 > Solaris. The > >JDK/SDKs, JREs, and locally constructed jar files are in different > >directories, depending on the operating system. > > > >I want to write a script that says something like > > > > set a bunch of properties > > > > > > set the same properties, only to different values > > > > > > provides "if" like properties, but I can't see=20 > how this allows > >me to set many properties to different values based on one=20 > condition test. > > > >Is there an easy way to do this? If there is, what is it? > > > >Thanks, > > > >Donald Holliday > > > > =20 > > > There is also a possibility using vanilla ant to do the=20 > equivalent. You=20 > need to use specific targets to set "flag" properties, then use these = > flag properties with the if and unless clauses of other targets. >=20 > For instance >=20 > > > > > > > > >=20 > > > >=20 > > > >=20 > depends=3D"checkos,setwindowsproperties,setunixproperties"/> >=20 > If you write such a build file and start ant setproperties,=20 > you will do=20 > what you want. >=20 > Cheers, >=20 > Antoine >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 ------_=_NextPart_001_01C3EEDB.33D2D710--