PumpStreamHandler handler = new PumpStreamHandler(io.inputStream, io.outputStream, io.errorStream);
handler.attach(p);
handler.start();
int status = p.waitFor();
handler.stop();
return status;
}
private void copyResourceTo(File outFile, String resource, boolean text) throws Exception {
if( !outFile.exists() ) {