public class ShellTransformer extends Object implements org.apache.commons.collections.Transformer
ProcessBuilder
<key>:<value>
Constructor and Description |
---|
ShellTransformer() |
ShellTransformer(String commandPath) |
Modifier and Type | Method and Description |
---|---|
String |
getCommandPath()
Absolute path to the command like D:/tmp/test.bat
|
File |
getDirectory() |
Map<String,String> |
getEnvironment()
Environment variables needed for the Shell task to execute
|
boolean |
isWaitForProcessEnd() |
void |
setCommandPath(String commandPath)
Absolute path to the command like D:/tmp/test.bat
|
void |
setDirectory(File directory) |
void |
setEnvironment(Map<String,String> environment)
Environment variables needed for the Shell task to execute
|
void |
setWaitForProcessEnd(boolean waitForProcessEnd) |
Object |
transform(Object input) |
public ShellTransformer()
public ShellTransformer(String commandPath)
public Object transform(Object input)
transform
in interface org.apache.commons.collections.Transformer
public String getCommandPath()
public void setCommandPath(String commandPath)
public Map<String,String> getEnvironment()
public void setEnvironment(Map<String,String> environment)
public boolean isWaitForProcessEnd()
public void setWaitForProcessEnd(boolean waitForProcessEnd)
public File getDirectory()
ProcessBuilder#directory(File)}
public void setDirectory(File directory)
ProcessBuilder#directory(File)}
Copyright © 2018. All rights reserved.