Package org.linkedin.util.concurrent

Examples of org.linkedin.util.concurrent.ExternalCommand$InputReader


   * @throws InterruptedException
   */
  public static File copyToJar(File jarFile, File root, boolean update)
    throws IOException, InterruptedException
  {
    ExternalCommand cmd =
      ExternalCommand.create("jar", "-" + (update ? "u" : "c") "vfM",
                             jarFile.getCanonicalPath(),
                             ".");
    cmd.setWorkingDirectory(root);
    cmd.start();
    cmd.waitFor();

    assertEquals(0, cmd.exitValue());

    jarFile.deleteOnExit();
    return jarFile.getCanonicalFile();
  }
View Full Code Here

TOP

Related Classes of org.linkedin.util.concurrent.ExternalCommand$InputReader

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.