org.apache.tools.ant.taskdefs

Class Filter

public class Filter extends Task

Sets a token filter that is used by the file copy tasks to do token substitution. Sets multiple tokens by reading these from a file.

Since: Ant 1.1

UNKNOWN: category="filesystem"

Method Summary
voidexecute()
Execute the task.
protected voidreadFilters()
Read the filters.
voidsetFiltersfile(File filtersFile)
The file from which the filters must be read.
voidsetToken(String token)
The token string without @ delimiters.
voidsetValue(String value)
The string that should replace the token during filtered copies.

Method Detail

execute

public void execute()
Execute the task.

Throws: BuildException on error

readFilters

protected void readFilters()
Read the filters.

Throws: BuildException on error

setFiltersfile

public void setFiltersfile(File filtersFile)
The file from which the filters must be read. This file must be a formatted as a property file.

Parameters: filtersFile filter file

setToken

public void setToken(String token)
The token string without @ delimiters.

Parameters: token token to set

setValue

public void setValue(String value)
The string that should replace the token during filtered copies.

Parameters: value token replace value