public class Workspace extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
ensureStructureExists() |
void |
exec(String command,
String subpath,
String logfilename)
Executes the given 'command' in the given 'dir' as current directory.
|
File |
getBinariesLocation() |
File |
getInputLocation() |
File |
getOutputLocation() |
File |
getRoot() |
void |
setBinariesLocation(String binariesLocation) |
void |
setExecutionsRoot(String executionsRoot) |
void |
setInputLocation(String inputLocation) |
void |
setOutputLocation(String outputLocation) |
public Workspace(String executionId)
public void setExecutionsRoot(String executionsRoot)
public File getRoot()
public File getInputLocation()
public File getBinariesLocation()
public File getOutputLocation()
public void destroy()
throws IOException
IOExceptionpublic void ensureStructureExists()
public void setBinariesLocation(String binariesLocation)
public void setOutputLocation(String outputLocation)
public void setInputLocation(String inputLocation)
public void exec(String command, String subpath, String logfilename)
command - the command to executesubpath - the subdirectory where to execute the commandlogfilename - the file where stdout and stderr are redirectedCopyright © 2019. All Rights Reserved.