Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 21370 invoked from network); 2 Nov 2009 06:57:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 2 Nov 2009 06:57:52 -0000 Received: (qmail 44512 invoked by uid 500); 2 Nov 2009 06:57:51 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 44430 invoked by uid 500); 2 Nov 2009 06:57:51 -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 44420 invoked by uid 99); 2 Nov 2009 06:57:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Nov 2009 06:57:50 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.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; Mon, 02 Nov 2009 06:57:48 +0000 Received: from z011100.bk.fin.local (z011100.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.14.0/8.14.0) with ESMTP id nA26vQSe021080 for ; Mon, 2 Nov 2009 07:57:26 +0100 Received: from z011103.bk.fin.local ([130.11.7.103]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.3959); Mon, 2 Nov 2009 07:57:26 +0100 Received: from z011021.bk.fin.local ([130.11.7.21]) by z011103.bk.fin.local with Microsoft SMTPSVC(6.0.3790.3959); Mon, 2 Nov 2009 07:57:26 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: AW: Help With Condition Task Date: Mon, 2 Nov 2009 07:57:26 +0100 Message-ID: <9EE86F1965E19E499C80DE52AC807B55051713CE@z011021.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: AW: Help With Condition Task Thread-Index: AcpZioInx7a/YdpWQb2Hv9HfGigI3wB/ujsA References: From: To: X-OriginalArrivalTime: 02 Nov 2009 06:57:26.0552 (UTC) FILETIME=[BC8D8980:01CA5B89] With these includes files: includes.prod.uk ---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------= 8-<---- file1.prod.uk file2.prod file3.prod ---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------= 8-<---- includes.prod.us ---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------= 8-<---- file1.prod.us file2.prod file3.prod ---8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------8-<-------= 8-<----=20 Jan >-----Urspr=FCngliche Nachricht----- >Von: Rez P [mailto:pons32@hotmail.com]=20 >Gesendet: Freitag, 30. Oktober 2009 18:57 >An: Ant >Betreff: RE: AW: Help With Condition Task > > >Thanks for your reply and help Jan, I'm still not clear. > >=20 > >All 3 files have to be copied to 3 different subfolders.=20 > >=20 > >So file1.qa, file2.qa, and file3.qa or with .staging extension=20 >would be fine as long as I'm building for those 2 environment.=20 > But when it comes to production I have to copy, say,=20 >file1.prod.uk (sometimes prod.us, etc) and file2.prod and=20 >file3.prod to different folders for the production build, I=20 >don't see how ${selected} could possess 2 values simutaneously=20 >(prod and prod.uk) in your example. Am I missing something or=20 >did I minunderstand? Please > >=20 > >doing QA"/> > > > > >$ant -Dselected=3Dqa > >=20 > >+++++++++++++++++++++++++++++++++++++++++++++++++ >=20 >> Subject: AW: Help With Condition Task >> Date: Fri, 30 Oct 2009 06:53:24 +0100 >> From: Jan.Materne@rzf.fin-nrw.de >> To: user@ant.apache.org >>=20 >> An idea is not to reference the files instead of "including" them: >>=20 >> file ./includes.qa: >>=20 >---8-<-------8-<-------8-<-------8-<-------8-<-------8-<------- >8-<-------8-<---- >> file1.qa >> file2.qa >> file3.qa >>=20 >---8-<-------8-<-------8-<-------8-<-------8-<-------8-<------- >8-<-------8-<---- >>=20 >>=20 >> file ./includes.staging >>=20 >---8-<-------8-<-------8-<-------8-<-------8-<-------8-<------- >8-<-------8-<---- >> file*.staging >>=20 >---8-<-------8-<-------8-<-------8-<-------8-<-------8-<------- >8-<-------8-<---- >>=20 >>=20 >> file ./includes... >>=20 >>=20 >>=20 >> doing QA"/> >> >> >> >>=20 >> $ant -Dselected=3Dqa >>=20 >>=20 >>=20 >> Jan >>=20 >> >-----Urspr=FCngliche Nachricht----- >> >Von: Rez P [mailto:pons32@hotmail.com]=20 >> >Gesendet: Freitag, 30. Oktober 2009 05:46 >> >An: Ant >> >Betreff: Help With Condition Task >> > >> > >> >Hi >> >=20 >> >I need help for what I need to do and not sure how to do it.=20 >> >I have bunch of property files with different extensions,=20 >> >file1.{qa,staging,prod.uk,prod.us,prod.nz} and=20 >> >file2.{qa,staging,prod} and file3.{qa,staging,prod}. >> >=20 >> >I need to have the copy task copy the correct respective=20 >> >environmental file to certain directories before I do my compile. >> >=20 >> >Here's a sample of my copy >> >=20 >> >target init >> > >> > >> > >> >=20 >> >=20 >> >c:\project>ant -Dext1=3Dqa init >> >=20 >> >since all 3 files have qa & staging in common, it runs=20 >> >successfully but not sure how I can declare ext1 to be 2=20 >> >things at the same time, meaning "ant -Dext1=3Dprod.uk init"=20 >> >will fail because the other 2 files have no such extensions=20 >> >and adversely "ant -Dext1=3Dprod init" will fail because not all=20 >> >files have prod extension. >> >=20 >> >I would like to try something like=20 >> >=20 >> >c:\project>ant -Dext1=3Dprod.uk -Dext2=3Dprod init >> >=20 >> >and maybe set up a condition in the ant file in target init if=20 >> >ext1 or ext2 equal certain value do this or do this other=20 >> >thing. I am reading the help page on Apache Ant and I don't=20 >> >see any thorough or detailed examples and the page doesn't=20 >> >really cover much of a description. >> >=20 >> >Thanks >> >=20 >> >Rez >> >=20 >> >_________________________________________________________________ >> >Windows 7: It works the way you want. Learn more. >> >http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=3DPI >> D24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen2:102009 >> > >>=20 >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >> For additional commands, e-mail: user-help@ant.apache.org >>=20 > =20 >_________________________________________________________________ >New Windows 7: Find the right PC for you. Learn more. >http://www.microsoft.com/windows/pc-scout/default.aspx?CBID=3Dwl& ocid=3DPID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_pcscout:102009 > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org