Package melnorme.utilbox.process

Examples of melnorme.utilbox.process.ExternalProcessHelper$ReadAllBytesTask


    ProcessBuilder pb = new ProcessBuilder(command);
    if(bundlePath != null) {
      pb.directory(bundlePath.path.toFile());
    }
   
    return new ExternalProcessHelper(pb);
  }
View Full Code Here


 
  public static void dubAddPath(Path packageRootDir) {
    String packageRootDirStr = packageRootDir.toString();
    System.out.println(":::: Adding DUB package root path: " + packageRootDirStr);
    try {
      ExternalProcessHelper processHelper;
      processHelper = startDubProcess(null, "add-path", packageRootDirStr);
      processHelper.strictAwaitTermination(2000);
      assertTrue(processHelper.getProcess().exitValue() == 0);
    } catch (TimeoutException | InterruptedException | IOException e) {
      throw melnorme.utilbox.core.ExceptionAdapter.unchecked(e);
    }
  }
View Full Code Here

 
  public static void dubRemovePath(Path packageRootDir) {
    String packageRootDirStr = packageRootDir.toString();
    System.out.println(":::: Removing DUB package root path: " + packageRootDirStr);
    try {
      ExternalProcessHelper processHelper;
      processHelper = startDubProcess(null, "remove-path", packageRootDirStr);
      processHelper.strictAwaitTermination(2000);
      assertTrue(processHelper.getProcess().exitValue() == 0);
    } catch (TimeoutException | InterruptedException | IOException e) {
      throw melnorme.utilbox.core.ExceptionAdapter.unchecked(e);
    }
  }
View Full Code Here

   
    pb.directory(bundlePath.path.toFile());
   
    ExternalProcessResult processResult;
    try {
      processResult = new ExternalProcessHelper(pb).strictAwaitTermination();
    } catch (TimeoutException e) {
      throw assertFail(); // Cannot happen because there is no cancel monitor
    }
   
    return parseDubDescribe(bundlePath, processResult);
View Full Code Here

TOP

Related Classes of melnorme.utilbox.process.ExternalProcessHelper$ReadAllBytesTask

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.