Last active
August 29, 2015 14:11
-
-
Save nicholasdunbar/aa6770c5eb3c29b1e781 to your computer and use it in GitHub Desktop.
Example of a replacing a token in ANT from a property file
This file contains 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
<copy file="crontab" | |
tofile="crontabTest.txt" | |
overwrite="true"> | |
</copy> | |
<replace file="crontabTest.txt" | |
propertyFile="dev2.properties"> | |
<replacefilter token="@cronPath@" | |
property="cronPath"/> | |
</replace> | |
<!-- | |
Code excerpt from http://boulderapps.co/replace-a-token-with-a-variable-using-ant | |
--> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment