ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey N. Solofnenko" <A.Solofne...@mdli.com>
Subject Re: AW: Howto do this in Ant: Replace a placeholder in a file with the content in another file
Date Tue, 12 Jul 2005 20:25:21 GMT
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 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:A.Solofnenko@mdl.com] 
> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message