Last active
November 3, 2016 16:08
-
-
Save devbhuwan/139ac452abb81e61d4fc6d01de6896cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8" ?> | |
<project> | |
<target name="antReplace"> | |
<!-- | |
<buildDir> and <srcDir> properties are pass in pom.xml in ant target configuration | |
<rootDir> property pass in antBuild.xml of antBuild target | |
--> | |
<ac:for param="token" list="outputLocation1,outputLocation2,outputLocation3" xmlns:ac="antlib:net.sf.antcontrib"> | |
<sequential> | |
<echo message="@{token}"/> | |
<replace file="${buildDir}/classes/config.properties"> | |
<replacetoken>@{token}</replacetoken> | |
<replacevalue>@{token}=/home/app/location</replacevalue> | |
<!-- for multiline token or value use CDATA --> | |
</replace> | |
</sequential> | |
</ac:for> | |
</target> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment