149150151152153154155156157158159
int exitValue=-1; try { Process p = Runtime.getRuntime().exec(command); ProcessWatcher pw = new ProcessWatcher(p); exitValue = pw.watch(); } catch(Exception e) { e.printStackTrace(); } if (exitValue==0) { if (logger!=null)