AW: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-12 Thread Christine Gerstenmayer
Hello Alexey Thanks very much for your help but I have another problem: Loadfile works fine: property name=ojbdatabase value=/ loadfile property=ojbdatabase srcfile=repository_database.xml /loadfile But if I want to replace the placeholder with the property like this (the placeholder in

WG: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-12 Thread Christine Gerstenmayer
Hi Alexey, sorry, I have to revoke my last answer. Loadfile does not work, it does nothing. I use Ant 1.6.2. Can this be the reason ? For all ? Do you have a manual for Ant 1.6.2 ? Please help. Regards Christine -Ursprüngliche Nachricht- Von: Christine Gerstenmayer [mailto:[EMAIL

RE: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-12 Thread Anderson, Rob (Global Trade)
The manual ships with Ant. Look in $ANT_HOME/doc/manual. -Rob A -Original Message- From: Christine Gerstenmayer [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 12, 2005 1:44 PM To: 'Alexey N. Solofnenko' Cc: 'Ant Users List' Subject: WG: Howto do this in Ant: Replace a placeholder in

Re: AW: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-12 Thread Alexey N. Solofnenko
It is XML. You will need to put amp;database;. - Alexey. Christine Gerstenmayer wrote: Hello Alexey Thanks very much for your help but I have another problem: Loadfile works fine: property name=ojbdatabase value=/ loadfile property=ojbdatabase srcfile=repository_database.xml /loadfile But

Re: AW: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-12 Thread Alexey N. Solofnenko
Hmm... loadfile after property with the same name is not supposed to work. The first task in the build script always wins. - Alexey. Christine Gerstenmayer wrote: Hello Alexey Thanks very much for your help but I have another problem: Loadfile works fine: property name=ojbdatabase value=/

Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-04 Thread Christine Gerstenmayer
Hi all, I need your help. I want to replace a placeholder in a file with the content of another file. e.g. File 1: Xxx X Xxx place File 2: Abcdefg Abcdefg Abcdefg I want to replace place in File 1 with the content of File 2 so

Re: Howto do this in Ant: Replace a placeholder in a file with the content in another file

2005-07-04 Thread Alexey N. Solofnenko
I would suggest using loadfile http://ant.apache.org/manual/CoreTasks/loadfile.html with replace http://ant.apache.org/manual/CoreTasks/replace.html - Alexey. Christine Gerstenmayer wrote: Hi all, I need your help. I want to replace a placeholder in a file with the content of another