类 VmsCommandLauncher

所有已实现的接口:
CommandLauncher

public class VmsCommandLauncher extends Java13CommandLauncher
Description: Title:首亨软件 - CRM、TSS、ERP等信息化管理软件
  • 构造器详细资料

    • VmsCommandLauncher

      public VmsCommandLauncher()
  • 方法详细资料

    • exec

      public Process exec(CommandLine cmd, Map env) throws IOException
      Launches the given command in a new process.
      指定者:
      exec 在接口中 CommandLauncher
      覆盖:
      exec 在类中 CommandLauncherImpl
      参数:
      cmd - The command to execute
      env - 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

      public Process exec(CommandLine cmd, Map env, File workingDir) throws IOException
      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 if workingDir is 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 strings
      env - the environment to set as an array of strings
      workingDir - the working directory where the command should run
      返回:
      the newly created process
      抛出:
      IOException - probably forwarded from Runtime#exec
    • isFailure

      public boolean isFailure(int exitValue)
      从接口复制的说明: CommandLauncher
      Checks whether exitValue signals 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
      返回:
      true if exitValue signals a failure
      另请参阅: