wcs
Class ProcessTask

java.lang.Object
  extended by wcs.Task
      extended by wcs.ProcessTask
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
JagTask, JarTask, JavacTask, JayTask, JLexTask, PjTask, RmTask

public class ProcessTask
extends Task

task to run a native process.


Nested Class Summary
 
Nested classes/interfaces inherited from class wcs.Task
Task.Exception, Task.In, Task.Out
 
Field Summary
protected  String[] argv
          arguments for native process.
 
Fields inherited from class wcs.Task
env, err, in, out
 
Constructor Summary
ProcessTask(String[] argv, Task.In in, Task.Out out, Task.Out err, Properties env)
           
 
Method Summary
static void main(String[] argv)
          test: run command line.
 void run()
          create a Process with an inherited environment and working directory.
protected  void run(Process proc)
          hook to inject a Process with an environment and/or a working directory.
 
Methods inherited from class wcs.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

argv

protected String[] argv
arguments for native process. Some subclasses may have to replace this prior to run().

Constructor Detail

ProcessTask

public ProcessTask(String[] argv,
                   Task.In in,
                   Task.Out out,
                   Task.Out err,
                   Properties env)
Method Detail

run

public void run()
         throws Task.Exception
create a Process with an inherited environment and working directory.

Specified by:
run in interface Runnable
Specified by:
run in class Task
Throws:
Task.Exception

run

protected void run(Process proc)
            throws Task.Exception
hook to inject a Process with an environment and/or a working directory.

Throws:
Task.Exception

main

public static void main(String[] argv)
                 throws Exception
test: run command line.

Throws:
Exception