Skip to content

Instantly share code, notes, and snippets.

@nicholasdunbar
Last active August 29, 2015 14:11
Show Gist options
  • Save nicholasdunbar/aa6770c5eb3c29b1e781 to your computer and use it in GitHub Desktop.
Save nicholasdunbar/aa6770c5eb3c29b1e781 to your computer and use it in GitHub Desktop.
Example of a replacing a token in ANT from a property file
<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