Methods Summary |
---|
public void | execute()Execute the task.
boolean isFiltersFromFile =
filtersFile != null && token == null && value == null;
boolean isSingleFilter =
filtersFile == null && token != null && value != null;
if (!isFiltersFromFile && !isSingleFilter) {
throw new BuildException("both token and value parameters, or "
+ "only a filtersFile parameter is "
+ "required", getLocation());
}
if (isSingleFilter) {
getProject().getGlobalFilterSet().addFilter(token, value);
}
if (isFiltersFromFile) {
readFilters();
}
|
protected void | readFilters()Read the filters.
log("Reading filters from " + filtersFile, Project.MSG_VERBOSE);
getProject().getGlobalFilterSet().readFiltersFromFile(filtersFile);
|
public void | setFiltersfile(java.io.File filtersFile)The file from which the filters must be read.
This file must be a formatted as a property file.
this.filtersFile = filtersFile;
|
public void | setToken(java.lang.String token)The token string without @ delimiters.
this.token = token;
|
public void | setValue(java.lang.String value)The string that should replace the token during filtered copies.
this.value = value;
|