public class DeleteTask extends VfsTask
TOOD - Allow selector to be specified.
| Constructor and Description |
|---|
DeleteTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes this task.
|
void |
setFile(String file)
Sets the file/folder to delete.
|
void |
setIncludes(String filesList)
Sets the files to include.
|
void |
setSrcDir(String srcDir)
Sets the source directory.
|
closeManager, resolveFilegetDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void setFile(String file)
file - The name of the file.public void setSrcDir(String srcDir)
srcDir - The source directory.public void setIncludes(String filesList)
filesList - The list of files.public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildException - if an error occurs.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.