wcs
Class RmTask
java.lang.Object
wcs.Task
wcs.ProcessTask
wcs.RmTask
- All Implemented Interfaces:
- Runnable
public class RmTask
- extends ProcessTask
task to delete files and directory trees.
BUG: this should not use ProcessTask.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
nodes
protected final ArrayList nodes
- nodes to be removed.
RmTask
public RmTask(Task.Out err,
Properties env)
- required properties:
addToNodes
public void addToNodes(File node)
throws IOException
- add a node to be removed.
- Throws:
IOException
run
public void run()
throws Task.Exception
- append
nodes to ProcessTask.argv,
delegate to base method.
- Specified by:
run in interface Runnable- Overrides:
run in class ProcessTask
- Throws:
Task.Exception
main
public static void main(String[] argv)
throws Exception
- test: run commandline with system properties.
- Throws:
Exception