Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 48025 invoked from network); 23 Feb 2005 06:29:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 23 Feb 2005 06:29:17 -0000 Received: (qmail 35180 invoked by uid 500); 23 Feb 2005 06:29:13 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 34874 invoked by uid 500); 23 Feb 2005 06:29:12 -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 34861 invoked by uid 99); 23 Feb 2005 06:29:11 -0000 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=HTML_50_60,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from dnsinet.rzf-nrw.de (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 22 Feb 2005 22:29:10 -0800 Received: from z011100.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 j1N6T1aM027992 for ; Wed, 23 Feb 2005 07:29:01 +0100 Received: from z011104.bk.fin.local ([130.11.7.104]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Wed, 23 Feb 2005 07:29:02 +0100 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2657.72) id ; Wed, 23 Feb 2005 07:29:02 +0100 Message-ID: <879A5AD5DD0ED511891F0003473A9B560E23FBF9@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: AW: Conditional Question for Build Script Date: Wed, 23 Feb 2005 07:28:59 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C51970.F57F0120" X-OriginalArrivalTime: 23 Feb 2005 06:29:02.0195 (UTC) FILETIME=[F70F8C30:01C51970] X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C51970.F57F0120 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Ant uses this technique for handling optional stuff - set a property if needed jars are there: - include the classes only if that property is set: So you could the copying stuff with =20 But dont forget: as the same as in target=B4s if/unless clause here the same is checked: WHETHER that property is set, not to which value! Usual copy ant Stage copy ant -Dstage=3Dtrue Another stage copy ant -Dstage=3Dfalse Jan > -----Urspr=FCngliche Nachricht----- > Von: Ninju Bohra [mailto:ninju_bohra@yahoo.com] > Gesendet am: Dienstag, 22. Februar 2005 19:09 > An: Ant Users List > Betreff: Re: Conditional Question for Build Script >=20 > You can use the task (part of the ant-contrib project). > =20 > > > > // Things to do if destination=3D=3Dstage > > > // Things to do if destination=3D=3Dstage > > >=20 > Or you can use the task :-) >=20 > Daniel Kalcevich wrote: > All, >=20 > I have a situation where I need to perform a check as to=20 > whether or not > a file needs to be included in build based upon a property. The > property would represent the environment, either "stage" or "prod". > Based upon the value of that property, I would need to rename=20 > a file and > move it to a different directory. Can anyone let me know the best way > to do this? Thanks. >=20 > Daniel >=20 > This email and/or any files or attachments transmitted with=20 > it are confidential and intended solely for the use of the=20 > individual or entity to whom they are addressed, and may=20 > contain information that is privileged, confidential and=20 > exempt from disclosure under applicable law. If you are not=20 > the intended recipient, or the employee or agent responsible=20 > for delivering the message to the intended recipient, you are=20 > hereby notified that any dissemination, distribution or=20 > copying of this e-mail and/or any files or attachments=20 > transmitted with it is strictly forbidden. If you have=20 > received this email in error, please delete the e-mail and/or=20 > any files or attachments, and also notify the system manager=20 > (PostMaster@mercuryinsurance.com) of the error. Please note=20 > that any views or opinions presented in this email are solely=20 > those of the author and do not necessarily represent those of=20 > the company. Finally, the recipient should check this email=20 > and any attachments for the presence of viruses. > The company accepts no liability for any damage caused by=20 > any virus transmitted by this email and/or any files or=20 > attachments transmitted with it. >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around=20 > http://mail.yahoo.com=20 >=20 ------_=_NextPart_001_01C51970.F57F0120--