类 CommandLauncherImpl
java.lang.Object
com.sh.common.exec.launcher.CommandLauncherImpl
- 所有已实现的接口:
CommandLauncher
Description:
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明exec(CommandLine cmd, Map env) Launches the given command in a new process.abstract Processexec(CommandLine cmd, Map env, File workingDir) Launches the given command in a new process, in the given working directory.booleanisFailure(int exitValue) Checks whetherexitValuesignals a failure on the current system (OS specific).
-
构造器详细资料
-
CommandLauncherImpl
public CommandLauncherImpl()
-
-
方法详细资料
-
exec
从接口复制的说明:CommandLauncherLaunches the given command in a new process.- 指定者:
exec在接口中CommandLauncher- 参数:
cmd- The command to executeenv- The environment for the new process. If null, the environment of the current process is used.- 返回:
- the newly created process
- 抛出:
IOException- if attempting to run a command in a specific directory
-
exec
从接口复制的说明:CommandLauncherLaunches the given command in a new process, in the given working directory.- 指定者:
exec在接口中CommandLauncher- 参数:
cmd- The command to executeenv- The environment for the new process. If null, the environment of the current process is used.workingDir- The directory to start the command in. If null, the current directory is used- 返回:
- the newly created process
- 抛出:
IOException- if trying to change directory
-
isFailure
public boolean isFailure(int exitValue) 从接口复制的说明:CommandLauncherChecks whetherexitValuesignals a failure on the current system (OS specific).Note that this method relies on the conventions of the OS, it will return false results if the application you are running doesn't follow these conventions. One notable exception is the Java VM provided by HP for OpenVMS - it will return 0 if successful (like on any other platform), but this signals a failure on OpenVMS. So if you execute a new Java VM on OpenVMS, you cannot trust this method.
- 指定者:
isFailure在接口中CommandLauncher- 参数:
exitValue- the exit value (return code) to be checked- 返回:
trueifexitValuesignals a failure- 另请参阅:
-