void launchTaskJVM ( TaskController . TaskControllerContext context ) throws IOException { JvmEnv env = context . env ; List < String > wrappedCommand = TaskLog . captureOutAndError ( env . setup , env . vargs , env . stdout , env . stderr , env . logSize , true ) ; ShellCommandExecutor shexec = new ShellCommandExecutor ( wrappedCommand . toArray ( new String [ 0 ] ) , env . workDir , env . env ) ; // set the ShellCommandExecutor for later use. context . shExec = shexec ; shexec . execute ( ) ; }
Launch a new JVM for the task .