Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 43300 invoked from network); 29 Jan 2008 10:30:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jan 2008 10:30:50 -0000 Received: (qmail 50737 invoked by uid 500); 29 Jan 2008 10:30:31 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 50685 invoked by uid 500); 29 Jan 2008 10:30:30 -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 50403 invoked by uid 99); 29 Jan 2008 10:30:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jan 2008 02:30:29 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS 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; Tue, 29 Jan 2008 10:29:58 +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 m0TAU3Do007768 for ; Tue, 29 Jan 2008 11:30:03 +0100 Received: from z011034.bk.fin.local ([130.11.7.34]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.1830); Tue, 29 Jan 2008 11:30:03 +0100 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 Subject: AW: How to set a new property based on value of another property in Ant ? Date: Tue, 29 Jan 2008 11:30:03 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to set a new property based on value of another property in Ant ? Thread-Index: AchiXxbcK4d/cYUaSAy0kC05b5KfyQAAXIqQ References: <246bcc580801290052p745498aas181f99aba942f82b@mail.gmail.com> <246bcc580801290209t64e69413sa35ed387b6ec3b6b@mail.gmail.com> From: To: X-OriginalArrivalTime: 29 Jan 2008 10:30:03.0437 (UTC) FILETIME=[E8A275D0:01C86261] X-Virus-Checked: Checked by ClamAV on apache.org I dont know any task. Which means: implement your own ;) Jan =3D str.length) { newValue =3D input + str; } else { newValue =3D input.substring(0, pos) + str + = input.substring(pos); } =20 // Store result project.setNewProperty(property, newValue); ]]> =20 ${out} =20 > -----Urspr=FCngliche Nachricht----- > Von: Ravi Roy [mailto:ravi.aroy@gmail.com]=20 > Gesendet: Dienstag, 29. Januar 2008 11:09 > An: Ant Users List > Betreff: Re: How to set a new property based on value of=20 > another property in Ant ? >=20 > On 1/29/08, Jan.Materne@rzf.fin-nrw.de=20 > wrote: > > You could load different property files according to a base property > > > > > > And with AntContrib you could copy contents > > > > > > > > > > ${text} =3D Hello World > > > > see also=20 > http://ant.apache.org/faq.html#propertyvalue-as-name-for-property > > > > > > Jan >=20 > Thanks Jan, >=20 > But initially, I was looking for how to manipulate the string like - > pushing "." in between value of the property using ant. >=20 > Regards, > Ravi >=20 > > > > > -----Urspr=FCngliche Nachricht----- > > > Von: Ravi Roy [mailto:ravi.aroy@gmail.com] > > > Gesendet: Dienstag, 29. Januar 2008 09:53 > > > An: user@ant.apache.org > > > Betreff: How to set a new property based on value of another > > > property in Ant ? > > > > > > Hi All, > > > > > > I want to set a property based on a value of the other=20 > property in my > > > build script : > > > > > > Already defined property in a build file : > > > > > > > > > > > > Want to set another property based on the value of this=20 > property like. > > > > > > > > > > > > Which means addding "." character after first character=20 > in the value > > > of foo.1 property. > > > > > > Is it possible in ant ? > > > > > > Thanks for pointers. > > > > > > Regards, > > > Ravi. > > > > > >=20 > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > > For additional commands, e-mail: user-help@ant.apache.org > > > > > > > > > >=20 > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > > For additional commands, e-mail: user-help@ant.apache.org > > > > >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org