| Constructor and Description |
|---|
Bash(Shells shls,
Collection<String> lines)
Public ctor.
|
Bash(Shells shls,
String scrt)
Public ctor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
exec(Map<String,String> args,
OutputStream output)
Execute encapsulated script with this map of arguments.
|
public Bash(@NotNull(message="shells can\'t be NULL") Shells shls, @NotNull(message="script can\'t be NULL") String scrt)
shls - Shellsscrt - Script to run there, Apache Velocity templatepublic Bash(Shells shls, Collection<String> lines)
shls - Shellslines - Script lines@Loggable(value=1, limit=2147483647) public int exec(@NotNull(message="args can\'t be NULL") Map<String,String> args, @NotNull(message="stream can\'t be NULL") OutputStream output) throws IOException
BatchAfter execution output stream is closed in any case.
exec in interface Batchargs - Arguments to use in Velocity scriptoutput - Output stream (combined stdout and stderr)IOException - If some IO problemCopyright © 2009–2014 Rultor Inc.. All rights reserved.