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
Post a Comment