Class ProcessCommand

  • All Implemented Interfaces:
    java.io.Serializable

    public class ProcessCommand
    extends java.lang.Object
    implements java.io.Serializable
    Command line parameters and environment used for process execution.
    See Also:
    Runtime.exec(String[], String[], File), Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String[] getCommand()
      Accesses the actual command to call and it's arguments.
      java.io.File getDirectory()
      Accesses the directory in which the command is executed.
      java.lang.String[] getEnvironment()
      Accesses environment variables to set when executing the command.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getCommand

        public java.lang.String[] getCommand()
        Accesses the actual command to call and it's arguments.
        Returns:
        the command as array
        See Also:
        Runtime.exec(String[], String[], File)
      • getEnvironment

        public java.lang.String[] getEnvironment()
        Accesses environment variables to set when executing the command.
        Returns:
        the environment variable to set (or null if the all environment variables should be inherited from the executing JVM).
        See Also:
        Runtime.exec(String[], String[], File)
      • getDirectory

        public java.io.File getDirectory()
        Accesses the directory in which the command is executed.
        Returns:
        the directory in which the process is executed (or null if the working directory should be inherited from the executing JVM).