public class RhinoShellExec extends JavaExec
Task.Namer
TASK_ACTION, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor and Description |
---|
RhinoShellExec() |
Modifier and Type | Method and Description |
---|---|
JavaExecSpec |
args(Iterable<?> args)
Adds args for the main class to be executed.
|
JavaExec |
args(Object... args)
Adds args for the main class to be executed.
|
void |
exec() |
List<String> |
getArgs()
Returns the arguments passed to the main class to be executed.
|
List<String> |
getRhinoOptions() |
File |
getScript() |
List<String> |
getScriptArgs() |
void |
rhinoOptions(Object... rhinoOptions) |
void |
scriptArgs(Object... scriptArgs) |
JavaExec |
setArgs(Iterable<?> applicationArgs)
Sets the args for the main class to be executed.
|
void |
setRhinoOptions(Object... rhinoOptions) |
void |
setScript(Object script) |
void |
setScriptArgs(Object... scriptArgs) |
bootstrapClasspath, classpath, copyTo, copyTo, environment, environment, executable, getAllJvmArgs, getBootstrapClasspath, getClasspath, getCommandLine, getDebug, getDefaultCharacterEncoding, getEnableAssertions, getEnvironment, getErrorOutput, getExecutable, getFileResolver, getJvmArgs, getMain, getMaxHeapSize, getMinHeapSize, getStandardInput, getStandardOutput, getSystemProperties, getWorkingDir, isIgnoreExitValue, jvmArgs, jvmArgs, setAllJvmArgs, setBootstrapClasspath, setClasspath, setDebug, setDefaultCharacterEncoding, setEnableAssertions, setEnvironment, setErrorOutput, setExecutable, setIgnoreExitValue, setJvmArgs, setMain, setMaxHeapSize, setMinHeapSize, setStandardInput, setStandardOutput, setSystemProperties, setWorkingDir, systemProperties, systemProperty, workingDir
conventionMapping, conventionMapping, getConventionMapping
addValidator, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, executeWithoutThrowingTaskFailure, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, leftShift, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setMustRunAfter, setName, setOnlyIf, setOnlyIf, setProject, setProperty, setShouldRunAfter, shouldRunAfter, toString
public void setRhinoOptions(Object... rhinoOptions)
public void rhinoOptions(Object... rhinoOptions)
public void setScriptArgs(Object... scriptArgs)
public void scriptArgs(Object... scriptArgs)
@InputFile @Optional public File getScript()
public void setScript(Object script)
@Input public List<String> getArgs()
JavaExec
getArgs
in interface JavaExecSpec
getArgs
in class JavaExec
public JavaExec setArgs(Iterable<?> applicationArgs)
JavaExec
setArgs
in interface JavaExecSpec
setArgs
in class JavaExec
applicationArgs
- Args for the main class.public JavaExec args(Object... args)
JavaExec
args
in interface JavaExecSpec
args
in class JavaExec
args
- Args for the main class.public JavaExecSpec args(Iterable<?> args)
JavaExec
args
in interface JavaExecSpec
args
in class JavaExec
args
- Args for the main class.