gs
Class RmTask

java.lang.Object
  extended by gs.Task
      extended by gs.ProcessTask
          extended by gs.RmTask
All Implemented Interfaces:
Runnable

Deprecated. Replaced by RmTask.

public class RmTask
extends ProcessTask

task to delete files and directory trees. BUG: this should not use ProcessTask.


Nested Class Summary
 
Nested classes/interfaces inherited from class gs.Task
Task.Exception, Task.In, Task.Out
 
Field Summary
protected  ArrayList nodes
          Deprecated. nodes to be removed.
 
Fields inherited from class gs.ProcessTask
argv
 
Fields inherited from class gs.Task
env, err, in, out
 
Constructor Summary
RmTask(Task.Out err, Properties env)
          Deprecated. required properties: rm delete command
 
Method Summary
 void addToNodes(File node)
          Deprecated. add a node to be removed.
static void main(String[] argv)
          Deprecated. test: run commandline with system properties.
 void run()
          Deprecated. append nodes to ProcessTask.argv, delegate to base method.
 
Methods inherited from class gs.Task
In, In, In, Out, Out
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodes

protected final ArrayList nodes
Deprecated. 
nodes to be removed.

Constructor Detail

RmTask

public RmTask(Task.Out err,
              Properties env)
Deprecated. 
required properties:
rm delete command

Method Detail

addToNodes

public void addToNodes(File node)
                throws IOException
Deprecated. 
add a node to be removed.

Throws:
IOException

run

public void run()
         throws Task.Exception
Deprecated. 
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
Deprecated. 
test: run commandline with system properties.

Throws:
Exception