public class SubVM extends Object
System.out.| Modifier and Type | Field and Description |
|---|---|
private static PrintStream |
origOut |
| Constructor and Description |
|---|
SubVM() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Entry point for the subtask.
|
private static void |
writeResponse(Object obj)
Write the serialized form of the given object to
System.out. |
private static PrintStream origOut
public static void main(String[] args)
args must
name a SubVMTask to run; the remaining elements comprise the
arguments for the subtask. That task is instantiated, and its
run(String[] args) method called passing an array containing
only the subtask arguments. The object returned by the run
method is written to System.out. If the run
method throws an exception, then that exception is written to
System.out instead.args - the command line argumentsCopyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.