B C D E G H I N O P R S W
All Classes All Packages
All Classes All Packages
All Classes All Packages
B
- buildProcess(String) - Static method in class gw.util.Shell
-
Deprecated.Builds a process starter given a command.
C
- closeStderr() - Method in class gw.util.ShellProcess
- closeStdin() - Method in class gw.util.ShellProcess
- closeStdout() - Method in class gw.util.ShellProcess
D
- destroy() - Method in class gw.util.ShellProcess
-
Kills the subprocess.
- doNotThrowOnNonZeroReturnVal() - Method in class gw.util.ProcessStarter
-
Deprecated.If called, this ProcessStarter will not throw an exception if the underlying process exits with a non-zero return code
- dumpStacks() - Static method in class gw.util.Shell
-
Deprecated.
E
- exec() - Method in class gw.util.process.ProcessRunner
-
Executes the given command as if it had been executed from the command line of the host OS (cmd.exe on windows, /bin/sh on *nix).
- exec() - Method in class gw.util.ProcessStarter
-
Deprecated.Executes the given command as if it had been executed from the command line of the host OS (cmd.exe on windows, /bin/sh on *nix) and returns all content sent to standard out as a string.
- exec(String) - Static method in class gw.util.Shell
-
Deprecated.Executes the given command as if it had been executed from the command line of the host OS (cmd.exe on windows, /bin/sh on *nix) and returns all content sent to standard out as a string.
- exec(String...) - Static method in class gw.util.process.ProcessRunner
- exec(String, String) - Static method in class gw.util.Shell
-
Deprecated.Executes the given command as if it had been executed from the command line of the host OS (cmd.exe on windows, /bin/sh on *nix) and returns all content sent to standard out as a string.
- execWithCharset(String, String...) - Static method in class gw.util.process.ProcessRunner
- execWithPipe() - Method in class gw.util.ProcessStarter
-
Deprecated.Executes the given command as if it had been executed from the command line of the host OS (cmd.exe on windows, /bin/sh on *nix) and pipes all data sent to this processes stdout, stderr, and stdin.
- execWithPipe(String) - Method in class gw.util.Shell
-
Deprecated.Executes the given command as if it had been executed from the command line of the host OS (cmd.exe on windows, /bin/sh on *nix) and pipes all data sent to this processes stdout, stderr, and stdin.
- exitValue() - Method in class gw.util.ShellProcess
-
Returns the exit value for the subprocess.
G
- getAllThreadStacks() - Static method in class gw.util.Shell
-
Deprecated.
- getBuffer() - Method in class gw.util.process.ProcessRunner
-
Returns any output buffered from the process' stdout or stderr, depending on if
ProcessRunner.withStdOutBuffered()and/orProcessRunner.withStdErrBuffered()were used. - getDirectory() - Method in class gw.util.ProcessStarter
-
Deprecated.Returns this process' working directory.
- getEnvironment() - Method in class gw.util.ProcessStarter
-
Deprecated.Returns a modifiable string map view of this process' environment.
- getExitCode() - Method in class gw.util.process.ProcessRunner
-
Returns the process' exit code, if it finished.
- getIsDone() - Method in class gw.util.ShellProcess
-
Returns true if the process is done, false if not
- getPlatform() - Static method in class gw.util.Shell
-
Deprecated.use
OSPlatform.getPlatform()instead - getRawCmdStr() - Method in class gw.util.process.ProcessRunner
- gw.util - package gw.util
- gw.util.process - package gw.util.process
H
- handleLine(String) - Method in interface gw.util.process.OutputHandler
- handleLine(String) - Method in class gw.util.ProcessStarter.NullOutputHandler
-
Deprecated.
- handleLine(String) - Method in interface gw.util.ProcessStarter.OutputHandler
-
Deprecated.
I
- IGNORE - Static variable in class gw.util.ProcessStarter
-
Deprecated.
- includeStdErrInOutput() - Method in class gw.util.ProcessStarter
-
Deprecated.If called, this ProcessStarter will include the StdErr output in the return string of this process.
- input(String) - Method in class gw.util.process.ProcessRunner
-
Sets the text to be directed into this process' stdin.
- isLinux() - Static method in class gw.util.Shell
-
Deprecated.use
OSPlatform.isLinux()instead - isMac() - Static method in class gw.util.Shell
-
Deprecated.use
OSPlatform.isMac()instead - isSolaris() - Static method in class gw.util.Shell
-
Deprecated.use
OSPlatform.isSolaris()instead - isWindows() - Static method in class gw.util.Shell
-
Deprecated.use
OSPlatform.isWindows()instead
N
- NullOutputHandler() - Constructor for class gw.util.ProcessStarter.NullOutputHandler
-
Deprecated.
O
- OutputHandler - Interface in gw.util.process
P
- ProcessRunner - Class in gw.util.process
- ProcessRunner(String...) - Constructor for class gw.util.process.ProcessRunner
- ProcessRunner(List<String>) - Constructor for class gw.util.process.ProcessRunner
- ProcessStarter - Class in gw.util
-
Deprecated.use
ProcessRunnerinstead - ProcessStarter(String) - Constructor for class gw.util.ProcessStarter
-
Deprecated.
- ProcessStarter.NullOutputHandler - Class in gw.util
-
Deprecated.
- ProcessStarter.OutputHandler - Interface in gw.util
-
Deprecated.
- ProcessStarter.ProcessHandler - Interface in gw.util
-
Deprecated.
- processWithHandler(ProcessStarter.ProcessHandler) - Method in class gw.util.ProcessStarter
-
Deprecated.Executes the given command as if it had been executed from the command line of the host OS (cmd.exe on windows, /bin/sh on *nix) and calls the provided handler with the newly created process.
R
- readChar() - Method in class gw.util.ShellProcess
- readLine() - Method in class gw.util.ShellProcess
-
Reads a line of text from stdout.
- readLine(String) - Static method in class gw.util.Shell
-
Deprecated.Prints the given prompt and then reads a line from standard in.
- readMaskedLine(String) - Static method in class gw.util.Shell
-
Deprecated.Prints the given prompt and then reads a line from standard in, but with the input masked with asterisks
- readStderrLine() - Method in class gw.util.ShellProcess
-
Reads a line of text from stderr.
- readStderrUntil(char, boolean) - Method in class gw.util.ShellProcess
-
Reads a group of text from stderr.
- readUntil(String, boolean) - Method in class gw.util.ShellProcess
-
Reads a group of text from stdout.
- run(ShellProcess) - Method in interface gw.util.ProcessStarter.ProcessHandler
-
Deprecated.
S
- setDirectory(File) - Method in class gw.util.ProcessStarter
-
Deprecated.Sets this process' working directory.
- Shell - Class in gw.util
-
Deprecated.use
ProcessRunnerinstead - Shell() - Constructor for class gw.util.Shell
-
Deprecated.
- ShellProcess - Class in gw.util
- start() - Method in class gw.util.ProcessStarter
-
Deprecated.Starts a new process using the attributes of this process starter.
W
- waitFor() - Method in class gw.util.ShellProcess
-
Causes the current thread to wait, if necessary, until the process represented by this
Processobject has terminated. - withArg(String) - Method in class gw.util.process.ProcessRunner
-
Adds an argument to the command.
- withCharset(String) - Method in class gw.util.process.ProcessRunner
-
Sets the charset with which to write to this process' input and read its output.
- withCharset(String) - Method in class gw.util.ProcessStarter
-
Deprecated.
- withCMD() - Method in class gw.util.process.ProcessRunner
-
The process built up will used CMD.EXE if this is a windows platform.
- withCMD() - Method in class gw.util.ProcessStarter
-
Deprecated.The process built up will use CMD if this is a windows platform.
- withEcho() - Method in class gw.util.process.ProcessRunner
-
Sets this process' output to be displayed the parent process' stdout and stderr.
- withEnvironmentVariable(String, String) - Method in class gw.util.process.ProcessRunner
-
Adds a name-value pair into this process' environment.
- withStdErrBuffered() - Method in class gw.util.process.ProcessRunner
-
Sets this process' stdout stream to be stored in the buffer accessible by
ProcessRunner.getBuffer(). - withStdErrHandler(OutputHandler) - Method in class gw.util.process.ProcessRunner
-
Adds a block to handle lines output this process' stderr.
- withStdErrHandler(ProcessStarter.OutputHandler) - Method in class gw.util.ProcessStarter
-
Deprecated.
- withStdOutBuffered() - Method in class gw.util.process.ProcessRunner
-
Sets this process' stdout stream to be stored in the buffer accessible by
ProcessRunner.getBuffer(). - withStdOutHandler(OutputHandler) - Method in class gw.util.process.ProcessRunner
-
Adds a block to handle lines output this process' stdout.
- withStdOutHandler(ProcessStarter.OutputHandler) - Method in class gw.util.ProcessStarter
-
Deprecated.
- withWorkingDirectory(File) - Method in class gw.util.process.ProcessRunner
-
Sets this process' working directory.
- write(String) - Method in class gw.util.ShellProcess
-
Writes the specified text to stdin
All Classes All Packages