ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anderson, Rob (Global Trade)" <Rob.Ander...@nike.com>
Subject RE: Howto do this in Ant: Replace a placeholder in a file with the content in another file
Date Tue, 12 Jul 2005 21:24:26 GMT
The manual ships with Ant. Look in $ANT_HOME/doc/manual.

-Rob A

> -----Original Message-----
> From: Christine Gerstenmayer [mailto:christine.gerstenmayer@chello.at]
> 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 a 
> file with
> the content in another file
> 
> 
> 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:christine.gerstenmayer@chello.at] 
> 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: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
> home: http://trelony.cjb.net/
> /
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message