Java exec execName()

Here you can find the source of execName()

Description

exec Name

License

Open Source License

Declaration

public static String execName() 

Method Source Code


//package com.java2s;
import java.io.File;

public class Main {
    public static String execName() {
        return isWindows() ? "rake.bat" : "rake";
    }//w w  w . j  a v  a2 s.  c o m

    public static boolean isWindows() {
        String name = System.getProperty("os.name");
        return name != null ? name.contains("Windows") : File.separatorChar == '\\';
    }
}

Related

  1. execHostName(String execCommand)
  2. execIt(String cmd)
  3. execJAR(String jarPath, String vmArgs, String appArgs, String workDir)
  4. execLocalhostCmd(String cmd)
  5. exeCmdByOs(String cmd)
  6. execPrint(final boolean out, final String... command)
  7. execProcess(String process)
  8. execProcess(String[] cmdline, final long timeout)
  9. Execption2Strings(boolean rep, Throwable... execptions)