Search code examples
antpropertiesfiltertoken

Referencing properties set in a build.xml in a filter task


I understand that we can use the filter ant task to pick up tokens from a file such as in <filter filtersfile="deploy_env.properties"/>

I also know that you can do <filter token="year" value="2000"/> and set the value of token year to 2000 .

I don't want to change the build.xml. but I want to be use the value of certain property that have been set in the ant files as tokens.

How do I do this ?

thanks


Solution

  • I usually use echoproperties to save current properties to a file and then use that file for filtering.