private ProcessBuilder appendExecutablePath ( ProcessBuilder builder ) { String executable = builder . command ( ) . get ( 0 ) ; if ( executable == null ) { throw new IllegalArgumentException ( "No executable provided to the Process Builder... we will do... nothing... " ) ; } builder . command ( ) . set ( 0 , FileUtils . getFileResourceId ( configuration . getWorkerPath ( ) , executable ) . toString ( ) ) ; return builder ; }
Pass the Path of the binary to the SubProcess in Command position 0