Method Summary |
|
public NestedString | createReplaceToken() Create a token to filter as the text of a nested element. |
public NestedString | createReplaceValue() Create a string to replace the token as the text of a nested element. |
public Replacefilter | createReplacefilter() Add a nested <replacefilter> element. |
public void | execute() Do the execution. |
public Properties | getProperties(File propertyFile) Load a properties file.
Parameters: propertyFile - the file to load the properties from. |
public void | setDir(File dir) The base directory to use when replacing a token in multiple files;
required if file is not defined. |
public void | setEncoding(String encoding) Set the file encoding to use on the files read and written by the task;
optional, defaults to default JVM encoding. |
public void | setFile(File file) Set the source file; required unless dir is set. |
public void | setPropertyFile(File propertyFile) The name of a property file from which properties specified using nested
<replacefilter> elements are drawn; required only if
the property attribute of <replacefilter> is used. |
public void | setReplaceFilterFile(File replaceFilterFile) Sets the name of a property file containing filters; optional. |
public void | setSummary(boolean summary) Indicates whether a summary of the replace operation should be
produced, detailing how many token occurrences and files were
processed; optional, default=false . |
public void | setToken(String token) Set the string token to replace; required unless a nested
replacetoken element or the replacefilterfile
attribute is used. |
public void | setValue(String value) Set the string value to use as token replacement;
optional, default is the empty string "". |
public void | validateAttributes() Validate attributes provided for this task in .xml build file. |
public void | validateReplacefilters() Validate nested elements. |