Package winterwell.utils

Examples of winterwell.utils.ShellScript


        throw new IORException("Creating symlink failed: " + out
            + " already exists.");
    }
    try {
      original = original.getCanonicalFile();
      ShellScript ss = new ShellScript("ln -s " + original + " " + out);
      ss.run();
      ss.waitFor();
      String err = ss.getError();
      if (!Utils.isBlank(err)) {
        if (overwrite && err.contains("File exists")) {
          // this can happen if the sym-link is to a non-existent file
          // File.exists() returns false for sym-links to non-existent
          // files (Java 6 on Ubuntu).
View Full Code Here

TOP

Related Classes of winterwell.utils.ShellScript

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.