wcs
Class ProcessTask
java.lang.Object
wcs.Task
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.
|
Field Summary |
protected String[] |
argv
arguments for native process. |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
argv
protected String[] argv
- arguments for native process.
Some subclasses may have to replace this prior to
run().
ProcessTask
public ProcessTask(String[] argv,
Task.In in,
Task.Out out,
Task.Out err,
Properties env)
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