|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.schmant.support.io.ProcessSettings
public class ProcessSettings
Configuration settings for running an external process.
Constructor Summary | |
---|---|
ProcessSettings()
|
Method Summary | |
---|---|
ArgumentList |
getArgumentList()
Get the command and its arguments. |
List<String> |
getEnvironmentVariables()
Get the list of environment variables to set for the process. |
ProcessOutputStrategy |
getStderrStrategy()
Get the strategy to use for collecting the process' stderr output. |
ProcessOutputStrategy |
getStdoutStrategy()
Get the strategy to use for collecting the process' stdout output. |
File |
getWorkingDirectory()
Get the working directory for the process. |
boolean |
isInheritEnvironmentVariables()
Should environment variables be inherited from the current process? |
ProcessSettings |
setArgumentList(ArgumentList al)
Set the command to use for running the process and the arguments to the process. |
ProcessSettings |
setEnvironmentVariables(List<String> l)
Set a list of environment variables to set for the process. |
ProcessSettings |
setInheritEnvironmentVariables(boolean b)
Should environment variables be inherited from this process? The default value of this is true . |
ProcessSettings |
setStderrStrategy(ProcessOutputStrategy pos)
Set the strategy to use for collecting the process' stderr output. |
ProcessSettings |
setStdoutStrategy(ProcessOutputStrategy pos)
Set the strategy to use for collecting the process' stdout output. |
ProcessSettings |
setWorkingDirectory(File d)
Set the working directory for the process. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ProcessSettings()
Method Detail |
---|
public ProcessSettings setStdoutStrategy(ProcessOutputStrategy pos)
pos
- The strategy.
this
.public ProcessOutputStrategy getStdoutStrategy()
public ProcessSettings setStderrStrategy(ProcessOutputStrategy pos)
pos
- The strategy.
this
.public ProcessOutputStrategy getStderrStrategy()
public ProcessSettings setArgumentList(ArgumentList al)
ProcessBuilder
.
al
- The argument list.
this
public ArgumentList getArgumentList()
public ProcessSettings setEnvironmentVariables(List<String> l)
l
- A list of environment variables.
this
.setInheritEnvironmentVariables(boolean)
public List<String> getEnvironmentVariables()
isInheritEnvironmentVariables()
public ProcessSettings setInheritEnvironmentVariables(boolean b)
true
.
If this is set to false
, the launched process will only see the
environment variables set to setEnvironmentVariables(List)
.
b
- Should environment variables be inherited?
this
setEnvironmentVariables(List)
public boolean isInheritEnvironmentVariables()
true
if environment variables should be inherited.public ProcessSettings setWorkingDirectory(File d)
d
- A working directory.
this
public File getWorkingDirectory()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |