private static int await( Process process ) { return new ProcessStreamHandler( process, true ).waitForResult(); }
private void execAndWait( String... args ) throws Exception { Process process = Runtime.getRuntime().exec( args ); new ProcessStreamHandler( process, true ).waitForResult(); }