public class GeneratedScriptBuilder extends java.lang.Object implements FileExtensionGeneratedScript
GeneratedScript
, which can be created via static factory methods script(String, String[])
or command(String...)
Modifier and Type | Method and Description |
---|---|
static GeneratedScript |
command(java.lang.String... command)
Create a command
|
java.lang.String[] |
getArgs()
Return arguments to the script
|
java.lang.String[] |
getCommand()
Return the command to execute
|
java.lang.String |
getFileExtension() |
java.lang.String |
getScript()
Return the script to execute
|
static GeneratedScript |
script(java.lang.String script,
java.lang.String[] args)
Create a script
|
static GeneratedScript |
script(java.lang.String script,
java.lang.String[] args,
java.lang.String fileExtension)
Create a script
|
public java.lang.String getScript()
GeneratedScript
getScript
in interface GeneratedScript
public java.lang.String[] getArgs()
GeneratedScript
getArgs
in interface GeneratedScript
public java.lang.String[] getCommand()
GeneratedScript
getCommand
in interface GeneratedScript
public java.lang.String getFileExtension()
getFileExtension
in interface FileExtensionGeneratedScript
public static GeneratedScript script(java.lang.String script, java.lang.String[] args)
script
- the script textargs
- the arguments for the scriptpublic static GeneratedScript script(java.lang.String script, java.lang.String[] args, java.lang.String fileExtension)
script
- the script textargs
- the arguments for the scriptfileExtension
- file extensionpublic static GeneratedScript command(java.lang.String... command)
command
- the command and arguments