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 PROTECTED] Gesendet: Dienstag, 12. Juli 2005 21:46 An: 'Alexey N. Solofnenko' Cc: 'Ant Users List' Betreff: AW: Howto do this in Ant: Replace a placeholder in a file with the content in another file 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 home: http://trelony.cjb.net/ / --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]