/** * 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; }
StringBuffer cmd = new StringBuffer().append(getJavaCommand()); if(getVMArguments()!=null) cmd.append(" ").append(getVMArguments()); if(getMain()==null) throw new RuntimeException("No main class or executable jar specified: "+this); if(isChildProcess()) cmd.append(" ").append(getMain()); if(getProgramArguments()!=null) cmd.append(" ").append(getProgramArguments()); cmd.append(" ").append(getMain()).append(" ").append(getProgramArguments());
File newcurdir = new File(options.getStartDirectory()); newcurdir.mkdirs(); final Process proc = Runtime.getRuntime().exec(options.getStartCommand(), null, newcurdir);
System.out.println("generated: "+comstr); final StartOptions so = new StartOptions(); so.setMain("jadex.base.Starter"); so.setProgramArguments(comstr);
final StartOptions options = opt == null ? new StartOptions() : opt; if(options.getClassPath() == null || options.getClassPath().length() == 0)
StartOptions so = new StartOptions(); so.setMain("jadex.base.Starter"); so.setProgramArguments(comstr);
StringBuffer cmd = new StringBuffer().append(getJavaCommand()); if(getVMArguments()!=null) cmd.append(" ").append(getVMArguments()); if(getMain()==null) throw new RuntimeException("No main class or executable jar specified: "+this); if(isChildProcess()) cmd.append(" ").append(getMain()); if(getProgramArguments()!=null) cmd.append(" ").append(getProgramArguments()); cmd.append(" ").append(getMain()).append(" ").append(getProgramArguments());
/** * 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; }