next up previous contents index
Next: Parameters specified as nested Up: ReplaceRegExp Previous: Parameters   Contents   Index

Examples

  <replaceregexp file="${src}/build.properties"
                         match="OldProperty=(.*)"
                         replace="NewProperty=\1"
                         byline="true"/>

replaces occurrences of the property name "OldProperty" with "NewProperty" in a properties file, preserving the existing value, in the file ${src}/build.properties



Andrew Marlow 2003-07-08