org.apache.tools.ant.taskdefsClass DefaultExcludes
- java.lang.Object
- org.apache.tools.ant.ProjectComponent
- org.apache.tools.ant.Task
- org.apache.tools.ant.taskdefs.DefaultExcludes
- All Implemented Interfaces:
- java.lang.Cloneable
public class DefaultExcludes extends TaskAlters the default excludes for the entire build..
- Since:
- Ant 1.6
Field Summary
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
Constructor Summary
Constructors Constructor and Description DefaultExcludes()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
execute()
Does the work.void
setAdd(java.lang.String add)
Pattern to add to the default excludesvoid
setDefault(boolean def)
go back to standard default patternsvoid
setEcho(boolean echo)
If true, echo the default excludes.void
setRemove(java.lang.String remove)
Pattern to remove from the default excludes.
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
Method Detail
execute
public void execute() throws BuildExceptionDoes the work.
- Overrides:
execute
in classTask
- Throws:
BuildException
- if something goes wrong with the build
setDefault
public void setDefault(boolean def)go back to standard default patterns
- Parameters:
def
- if true go back to default patterns
setAdd
public void setAdd(java.lang.String add)Pattern to add to the default excludes
- Parameters:
add
- Sets the value for the pattern to exclude.
setRemove
public void setRemove(java.lang.String remove)Pattern to remove from the default excludes.
- Parameters:
remove
- Sets the value for the pattern that should no longer be excluded.
setEcho
public void setEcho(boolean echo)If true, echo the default excludes.
- Parameters:
echo
- whether or not to echo the contents of the default excludes.