Posted By:
Sachin_Dare27252235124
Posted On:
Thursday, December 6, 2012 07:08 AM
Hello World, I want to use the replace action on some conditions, I am not able to do the conditioning part. Kindly help me in this. I do not want to use Ant Contrib for this. I want something like this - <if environment-type="Dev"> <replace file="${dir.src}/log4j.xml" token="@@@" value="DEBUG"/> </if> <if environment-type="QA"> <replace file="${dir.src}/log4j.xml" token="@@@" value="INFO"/> </if> <if environment-type="Prod"> <replace file="${dir.src}/log4j.xml" token="@@@" value=&q
More>>
Hello World,
I want to use the replace action on some conditions, I am not able to do the conditioning part.
Kindly help me in this. I do not want to use Ant Contrib for this.
I want something like this -
<if environment-type="Dev">
<replace file="${dir.src}/log4j.xml" token="@@@" value="DEBUG"/>
</if>
<if environment-type="QA">
<replace file="${dir.src}/log4j.xml" token="@@@" value="INFO"/>
</if>
<if environment-type="Prod">
<replace file="${dir.src}/log4j.xml" token="@@@" value="WARN"/>
</if>
Thanks a lot in advance.
Regards,
Sachin Dare.
<<Less