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
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
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
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
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=/
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
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