Package sonia.scm.io
Class SimpleCommand
java.lang.Object
sonia.scm.io.SimpleCommand
- All Implemented Interfaces:
Command
- Direct Known Subclasses:
ExtendedCommand
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleCommand
(String... command) SimpleCommand
(Map<String, String> environment, String... command) -
Method Summary
Modifier and TypeMethodDescriptionprotected Process
execute()
protected SimpleCommandResult
boolean
void
setEnvironment
(Map<String, String> environment) void
setUseSystemEnvironment
(boolean useSystemEnvironment) void
setWorkDirectory
(File workDirectory)
-
Constructor Details
-
SimpleCommand
-
SimpleCommand
- Since:
- 1.8
-
-
Method Details
-
execute
- Specified by:
execute
in interfaceCommand
- Throws:
IOException
-
isUseSystemEnvironment
public boolean isUseSystemEnvironment()- Since:
- 1.23
-
setEnvironment
- Since:
- 1.8
-
setUseSystemEnvironment
public void setUseSystemEnvironment(boolean useSystemEnvironment) - Since:
- 1.23
-
setWorkDirectory
- Specified by:
setWorkDirectory
in interfaceCommand
-
createProcess
- Throws:
IOException
-
getResult
- Throws:
IOException
-