Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 74502 invoked from network); 19 Feb 2003 13:13:03 -0000 Received: from mail4.halifax.co.uk (HELO mgwpud101.halifax.co.uk) (194.75.129.8) by daedalus.apache.org with SMTP; 19 Feb 2003 13:13:03 -0000 X-Server-Uuid: bfc86172-511a-11d5-848b-00805fbe585d content-class: urn:content-classes:message MIME-Version: 1.0 X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 Subject: RE: 2nd try: Creating property using regular expression on string/property value Date: Wed, 19 Feb 2003 13:12:54 -0000 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: 2nd try: Creating property using regular expression on string/property value Thread-Index: AcLYE207HHLa72ISQCy+Pnmn0xUArQABG0dA From: SimonRichardson2@hbosts.com To: user@ant.apache.org X-WSS-ID: 124D5D6524380-04-02 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <124D5D6524380-04@MMS__HBOSplc.com_> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N You can't change the values of properties because they're immutable. But you could create a second property based on the value of your string by: 1) creating a property file 2) using regular expression to change the value in the property file. 3) source the properties Some example .. output.. =66oo.default: [echo] changestring=3Dtom dick [propertyfile] Updating property file: /temp/temp.properties [echo] newchangestring=3Dtom dick and harry HTH Simon > -----Original Message----- > From: Tony Obermeit [mailto:tonyob@compuserve.com] > Sent: 19 February 2003 12:36 > To: ant-user@jakarta.apache.org > Subject: 2nd try: Creating property using regular expression on > string/property value >=20 >=20 > I'm still trying to find an answer for this question. I've=20 > searched the=20 > documentation on regexp which appears to apply to mapping or=20 > selecting=20 > filenames based on a regular expression. I just want to do a string=20 > replace on a property value using a regular expression. Any other=20 > ideas? Just point me to the appropriate ant documentation. >=20 > thanks >=20 > Tony >=20 > >Date: Mon, 17 Feb 2003 07:02:34 +1000 > >To: ant-user@jakarta.apache.org > >From: Tony Obermeit > >Subject: Creating property using regular expression on=20 > string/property value > > > >I have a property value that I want to use for part of a=20 > file name but the=20 > >property value sometimes includes spaces that I don't want=20 > to include in=20 > >the filename. I am looking to create a new property value=20 > but apply a=20 > >regular expression to an existing property value when I=20 > create it. The=20 > >examples I've seen seem to do this with replacing tokens within an=20 > >existing file, I want to do it effectively within a string=20 > in my build script. > > > >Thanks > > > >Tony >=20 >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org >=20 >=20 >=20 --=20 ---------------------------------------------------------------------------= --- =46or more information on HBOS Treasury Services, please visit = http://www.HBOSTS.com Or for details of our online FX & Deposit services, please go to = http://www.HBOSdeal.com HBOS Treasury Services plc is part of the HBOS Group, which also includes = Halifax plc and Bank of Scotland. Registered Office: 33 Old Broad Street, London EC2N 1HZ. Registered No. = 2692890. Registered in England. Regulated by the Financial Services Authority. The information contained in this message is confidential and is intended = =66or the addressee only. If you have received this message in error or = there are any problems please notify the originator immediately. The = unauthorised use, disclosure, copying or alteration of this message is = strictly forbidden. This mail and any attachments have been scanned for = viruses prior to leaving the HBOS Treasury Services plc network. HBOS = Treasury Services plc will not be liable for direct, special, indirect or = consequential damages arising from alteration of the contents of this = message by a third party or as a result of any virus being passed on. HBOS Treasury Services plc reserves the right to monitor and record e-mail = messages sent to and from this address for the purposes of investigating or= = detecting any unauthorised use of its system and ensuring its effective = operation. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D