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=""/>
<loadfile property="ojbdatabase" srcfile="repository_database.xml">
</loadfile>
But if I want to replace the placeholder with the property like this (the
placeholder in repository.xml is "&database;":
<replace file="repository.xml">
<replacefilter token="&database;" property="ojbdatabase"/>
</replace>
Ant says: The entity "database" was referenced but not declared.
Can you explain me this please? Where do I have to declare a token ?
Thanks for your help.
Best Regards
Christine
-----Ursprüngliche Nachricht-----
Von: Alexey N. Solofnenko [mailto:[EMAIL PROTECTED]
Gesendet: Dienstag, 05. Juli 2005 00:20
An: Ant Users List
Betreff: Re: Howto do this in Ant: Replace a placeholder in a file with the
content in another file
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
file.
...
--
------------------------------------------------------------------------
/ Alexey N. Solofnenko
MDL Information Systems, Inc.
work: 510-357-2222x1726
home: http://trelony.cjb.net/
/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]