How do I use properties in ants replace task? -


i need replace token property. property has path location set. not getting replacing $

<replace file="${apache_home}/conf/wc_server1.conf" >   <replacetoken>@install_base_directory@</replacetoken>  <replacevalue>$installerbase</replacevalue> 

you have 2 options:

<replace file="${apache_home}/conf/wc_server1.conf" >   <replacetoken><![cdata[@install_base_directory@]]></replacetoken>    <replacevalue><![cdata[$installerbase]]></replacevalue> </replace> 

or since it's single line replace, use:

<replace file="${apache_home}/conf/wc_server1.conf"    token="@install_base_directory@"   value="$installerbase" /> 

Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -