RE: AW: Modify xml file

2009-01-21 Thread Brian Agnew
tech-solutions.com] >>> Sent: Wednesday, January 21, 2009 2:36 PM >>> To: Ant Users List >>> Subject: Re: AW: Modify xml file >>> >>> Just as a followup, I do a similar thing as #3 in a project I am >>> ANT'ing, and if you are not replacing in

AW: AW: Modify xml file

2009-01-21 Thread Jan.Materne
5:23 >An: Ant Users List >Betreff: RE: AW: Modify xml file > >You should exercise caution when using replace to substitute >tokens in xml files and property files because some chars >&<>'" need to be escaped in xml files. > >You need to be sure that the st

Re: AW: Modify xml file

2009-01-21 Thread Blaine Simpson
My favorite way is to use unicode escapes. Not only does it work for every character you will need (visible or not visible), but unicode escapes work for all XML, properties, and even Java source files (using different syntax, as explained below). For Ant build files: "&#" + 2_DIGIT_DECIMAL_NUMBE

RE: AW: Modify xml file

2009-01-21 Thread Alec Fernandez
rian Stephenson [mailto:bstephen...@thortech-solutions.com] >> Sent: Wednesday, January 21, 2009 2:36 PM >> To: Ant Users List >> Subject: Re: AW: Modify xml file >> >> Just as a followup, I do a similar thing as #3 in a project I am >> ANT'ing, and if you are

Re: AW: Modify xml file

2009-01-21 Thread Brian Stephenson
Just as a followup, I do a similar thing as #3 in a project I am ANT'ing, and if you are not replacing in the XML file using regular expressions (e.g., you are just replacing 'password="foo"' with 'password="bar"'), you may be able to accomplish what you need to do with the much simpler-to-

AW: Modify xml file

2009-01-21 Thread Jan.Materne
There are multiple options: 1. create two hibernate files and select only one of them while copying using conditional patternset . 2. create a template and fill in the the values 3. modify the config file with 4. modify the config file with (external task) Jan >-Ursprüngliche Nachrich