public static ExternalCommand execute ( File workingDirectory , String command , String ... args ) throws IOException , InterruptedException { try { return executeWithTimeout ( workingDirectory , command , 0 , args ) ; } catch ( TimeoutException e ) { // Can't happen! throw new IllegalStateException ( MODULE + ".execute: Unexpected timeout occurred!" ) ; } }
Executes the external command in the given working directory and waits for it to be finished .