Package org.apache.tools.ant.taskdefs
Class Filter
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.Filter
-
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
Execute the task.protected void
Read the filters.void
setFiltersfile
(File filtersFile) The file from which the filters must be read.void
The token string without @ delimiters.void
The string that should replace the token during filtered copies.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
Filter
public Filter()
-
-
Method Details
-
setToken
The token string without @ delimiters.- Parameters:
token
- token to set
-
setValue
The string that should replace the token during filtered copies.- Parameters:
value
- token replace value
-
setFiltersfile
The file from which the filters must be read. This file must be a formatted as a property file.- Parameters:
filtersFile
- filter file
-
execute
Execute the task.- Overrides:
execute
in classTask
- Throws:
BuildException
- on error
-
readFilters
Read the filters.- Throws:
BuildException
- on error
-