Package org.apache.commons.vfs2.tasks
Class DeleteTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.commons.vfs2.tasks.VfsTask
org.apache.commons.vfs2.tasks.DeleteTask
- All Implemented Interfaces:
- Cloneable
An Ant task that deletes matching files.
 
TODO - Allow selector to be specified.
- 
Field SummaryFields inherited from class org.apache.tools.ant.Tasktarget, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponentdescription, location, project
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class org.apache.commons.vfs2.tasks.VfsTaskcloseManager, resolveFileMethods inherited from class org.apache.tools.ant.TaskbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponentclone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
- 
Constructor Details- 
DeleteTaskpublic DeleteTask()Constructs a new instance.
 
- 
- 
Method Details- 
executeExecutes this task.- Overrides:
- executein class- org.apache.tools.ant.Task
- Throws:
- org.apache.tools.ant.BuildException- if an error occurs.
 
- 
setFileSets the file/folder to delete.- Parameters:
- file- The name of the file.
 
- 
setIncludesSets the files to include.- Parameters:
- filesList- The list of files.
 
- 
setSrcDirSets the source directory.- Parameters:
- srcDirUrl- The source directory.
 
 
-