public static class EnvironmentUtil.ShellEnvReader
extends java.lang.Object
Constructor and Description |
---|
ShellEnvReader()
Creates an instance with the default time-out value of milliseconds.
|
ShellEnvReader(long timeoutMillis) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getShell() |
protected java.util.List<java.lang.String> |
getShellProcessCommand() |
java.util.Map<java.lang.String,java.lang.String> |
readBatEnv(java.io.File batchFile,
java.util.List<java.lang.String> args) |
protected Pair<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
readBatOutputAndEnv(java.io.File batchFile,
java.util.List<java.lang.String> args) |
java.util.Map<java.lang.String,java.lang.String> |
readShellEnv() |
protected java.util.Map<java.lang.String,java.lang.String> |
readShellEnv(java.util.Map<java.lang.String,java.lang.String> additionalEnvironment) |
protected Pair<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
runProcessAndReadOutputAndEnvs(java.util.List<java.lang.String> command,
java.io.File workingDir,
java.util.Map<java.lang.String,java.lang.String> scriptEnvironment,
java.io.File envFile) |
public ShellEnvReader()
ShellEnvReader(long)
public ShellEnvReader(long timeoutMillis)
timeoutMillis
- the time-out (in milliseconds) for reading environment variables.ShellEnvReader()
public java.util.Map<java.lang.String,java.lang.String> readShellEnv() throws java.io.IOException
java.io.IOException
protected java.util.Map<java.lang.String,java.lang.String> readShellEnv(java.util.Map<java.lang.String,java.lang.String> additionalEnvironment) throws java.io.IOException
java.io.IOException
public java.util.Map<java.lang.String,java.lang.String> readBatEnv(java.io.File batchFile, java.util.List<java.lang.String> args) throws java.lang.Exception
java.lang.Exception
protected Pair<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> readBatOutputAndEnv(java.io.File batchFile, java.util.List<java.lang.String> args) throws java.lang.Exception
java.lang.Exception
protected final Pair<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> runProcessAndReadOutputAndEnvs(java.util.List<java.lang.String> command, java.io.File workingDir, java.util.Map<java.lang.String,java.lang.String> scriptEnvironment, java.io.File envFile) throws java.io.IOException
java.io.IOException
protected java.util.List<java.lang.String> getShellProcessCommand()
protected java.lang.String getShell()