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

Field Summary

Fields inherited from class org.apache.tools.ant.Task

description, location, target, taskName, taskType, wrapper

Fields inherited from class org.apache.tools.ant.ProjectComponent

project

Method Summary

void
execute()
protected void
readFilters()
void
setFiltersfile(File filtersFile)
The file from which the filters must be read.
void
setToken(String token)
The token string without @ delimiters.
void
setValue(String value)
The string that should replace the token during filtered copies.

Methods inherited from class org.apache.tools.ant.Task

execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType

Methods inherited from class org.apache.tools.ant.ProjectComponent

getProject, log, log, setProject

Method Details

execute

public void execute()
            throws BuildException
Overrides:
execute in interface Task


readFilters

protected void readFilters()
            throws BuildException


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


Copyright B) 2000-2005 Apache Software Foundation. All Rights Reserved.