Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 22802 invoked from network); 7 Oct 2005 15:19:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Oct 2005 15:19:23 -0000 Received: (qmail 35205 invoked by uid 500); 7 Oct 2005 15:19:17 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 35165 invoked by uid 500); 7 Oct 2005 15:19:15 -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 35154 invoked by uid 99); 7 Oct 2005 15:19:15 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2005 08:19:15 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2005 08:19:17 -0700 Received: from z011100.bk.fin.local (z011104.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id j97FIH0V027341 for ; Fri, 7 Oct 2005 17:18:17 +0200 Received: from z011134.bk.fin.local ([130.11.7.134]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Fri, 7 Oct 2005 17:18:19 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: AW: Help with choosing build property file Date: Fri, 7 Oct 2005 17:18:19 +0200 Message-ID: <3CD9A35A043C094EA8773DBB698E801B0376D21C@z011134.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Help with choosing build property file Thread-Index: AcXLTQP/aSzzaeS9QNC/I62tUcFSLwAAQlXwAAD7w0AAAAzP4A== From: To: X-OriginalArrivalTime: 07 Oct 2005 15:18:19.0988 (UTC) FILETIME=[5989B140:01C5CB52] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N You have to build something witch and ... or find a = Java System property holding that value. Jan=20 >-----Urspr=FCngliche Nachricht----- >Von: Rakesh Patel [mailto:Rakesh.Patel@sharepeople.com]=20 >Gesendet: Freitag, 7. Oktober 2005 17:16 >An: Ant Users List >Betreff: RE: Help with choosing build property file > >Hi Jan, > >That looks promising. Is there a way to make it work on both=20 >windows and unix? I develop on windows and deploy to solaris. > >Thanks > >Rakesh > >-----Original Message----- >From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] >Sent: 07 October 2005 15:52 >To: user@ant.apache.org >Subject: AW: Help with choosing build property file > > > >=20 >=20 > >Because properties are immutable the more specific values in=20 >the first file are prefered. If that file does not exist (eg=20 >${computername} is not set) it does not matter. > >You have to set the property 'computername'. On WinXP you can=20 >use a env variable: name=3D"computername" value=3D"${env.COMPUTERNAME}"/> > > >Jan > > > >>-----Urspr=FCngliche Nachricht----- >>Von: Rakesh Patel [mailto:Rakesh.Patel@sharepeople.com] >>Gesendet: Freitag, 7. Oktober 2005 16:40 >>An: user@ant.apache.org >>Betreff: Help with choosing build property file >> >>Hi, >> >>I would like to enhance my current Ant setup and was looking >>for advice. >> >>At the moment, Ant picks up the build.properties file in the >>root directory and uses that: >> >> >> >>However, what I would like to do is this: >> >>1. Ant gets the machine name/IP address of the machine it is >>running on. >>2. Based on the answer to (1), a particular property file is=20 >>chosen and used. >>3. If no machine name/ip address match a default property=20 >file is used. >> >>Is this doable? I saw a configuration like this once but it >>was done in Perl. >> >>Thanks >> >>Rakesh >> >> >>American Express Investments and American Express Independent >>Financial Advisers are marketing names for American Express=20 >>Financial Services Europe Limited, a separate corporation=20 >>within the American Express group of companies. American=20 >>Express Financial Services Europe Limited is authorised and=20 >>regulated by, and is entered into the register (No. 190853=20 >>www.fsa.gov.uk/register/) of, the Financial Services Authority=20 >>and a member of the London Stock Exchange. Registered in=20 >>England No. 3614902. Registered address: 230 Blackfriars Road,=20 >>London SE1 8NW. Vat No. 740 4143 68.=20 >> >>The information in this email and any attachments is >>confidential and intended solely for the attention and use of=20 >>the named addressee(s). It may be subject to legal,=20 >>professional or other privilege and further distribution of it=20 >>is strictly prohibited without our authority. If you are not=20 >>the intended recipient, you are not authorised to and must not=20 >>disclose, copy, distribute, or retain this message or any part=20 >>of it, and should notify us immediately. >> >> > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org > > > >American Express Investments and American Express Independent=20 >Financial Advisers are marketing names for American Express=20 >Financial Services Europe Limited, a separate corporation=20 >within the American Express group of companies. American=20 >Express Financial Services Europe Limited is authorised and=20 >regulated by, and is entered into the register (No. 190853=20 >www.fsa.gov.uk/register/) of, the Financial Services Authority=20 >and a member of the London Stock Exchange. Registered in=20 >England No. 3614902. Registered address: 230 Blackfriars Road,=20 >London SE1 8NW. Vat No. 740 4143 68.=20 > >The information in this email and any attachments is=20 >confidential and intended solely for the attention and use of=20 >the named addressee(s). It may be subject to legal,=20 >professional or other privilege and further distribution of it=20 >is strictly prohibited without our authority. If you are not=20 >the intended recipient, you are not authorised to and must not=20 >disclose, copy, distribute, or retain this message or any part=20 >of it, and should notify us immediately. > > >--------------------------------------------------------------------- >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