Package org.pdtextensions.core.launch.execution

Examples of org.pdtextensions.core.launch.execution.ScriptExecutor


  public void launch(String argument, String[] params) throws ExecuteException, IOException, InterruptedException {
    CommandLine cmd = environment.getCommand();
    cmd.addArgument(argument);
    cmd.addArguments(params);
   
    executor = new ScriptExecutor();
   
    if (timeout != null) {
      executor.setTimeout(timeout);
    }
   
View Full Code Here


  @Override
  public void run() {
   
    try {
      ScriptExecutor executor = new ScriptExecutor();
      CommandLine cmd = new CommandLine(phPexeItem.getExecutable());
      cmd.addArgument("testexecutable");
     
      Bundle bundle = Platform.getBundle(PEXUIPlugin.PLUGIN_ID);
      URL entry = bundle.getEntry("Resources/launcher");
     
      File file = new File(FileLocator.resolve(entry).toURI());
     
      if (file != null) {
        executor.setWorkingDirectory(file);
      }

      executor.addResponseListener(listener);
      executor.execute(cmd);
    } catch (Exception e) {
      Logger.logException(e);
    }
  }
View Full Code Here

TOP

Related Classes of org.pdtextensions.core.launch.execution.ScriptExecutor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.