/** * Start a platform using a configuration. * * @param options The arguments. */ public Process startProcess() throws Exception { // Can be called in another directory File newcurdir = new File(getStartDirectory()); newcurdir.mkdirs(); Process proc = Runtime.getRuntime().exec(getStartCommand(), null, newcurdir); if(isChildProcess()) { new Thread(new StreamCopy(proc.getInputStream(), System.out)).start(); new Thread(new StreamCopy(proc.getErrorStream(), System.err)).start(); } return proc; }
/** * Start a platform using a configuration. * * @param options The arguments. */ public Process startProcess() throws Exception { // Can be called in another directory File newcurdir = new File(getStartDirectory()); newcurdir.mkdirs(); Process proc = Runtime.getRuntime().exec(getStartCommand(), null, newcurdir); if(isChildProcess()) { new Thread(new StreamCopy(proc.getInputStream(), System.out)).start(); new Thread(new StreamCopy(proc.getErrorStream(), System.err)).start(); } return proc; }
final Process proc = Runtime.getRuntime().exec(options.getStartCommand(), null, newcurdir);