类 VmsCommandLauncher
java.lang.Object
com.sh.common.exec.launcher.CommandLauncherImpl
com.sh.common.exec.launcher.Java13CommandLauncher
com.sh.common.exec.launcher.VmsCommandLauncher
- 所有已实现的接口:
CommandLauncher
Description:
Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明exec(CommandLine cmd, Map env) Launches the given command in a new process.exec(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).
-
构造器详细资料
-
VmsCommandLauncher
public VmsCommandLauncher()
-
-
方法详细资料
-
exec
Launches the given command in a new process.- 指定者:
exec在接口中CommandLauncher- 覆盖:
exec在类中CommandLauncherImpl- 参数:
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
Launches the given command in a new process, in the given working directory. Note that under Java 1.3.1, 1.4.0 and 1.4.1 on VMS this method only works ifworkingDiris null or the logical JAVA$FORK_SUPPORT_CHDIR needs to be set to TRUE.- 指定者:
exec在接口中CommandLauncher- 覆盖:
exec在类中Java13CommandLauncher- 参数:
cmd- the command line to execute as an array of stringsenv- the environment to set as an array of stringsworkingDir- the working directory where the command should run- 返回:
- the newly created process
- 抛出:
IOException- probably forwarded from Runtime#exec
-
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- 覆盖:
isFailure在类中CommandLauncherImpl- 参数:
exitValue- the exit value (return code) to be checked- 返回:
trueifexitValuesignals a failure- 另请参阅:
-