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)
Cannot set args directly on RhinoShellExec, use
setRhinoOptions(List) , setScriptArgs(List) and/or setScript(File) instead. |
JavaExec |
args(Object... args)
Cannot set args directly on RhinoShellExec, use
setRhinoOptions(List) , setScriptArgs(List) and/or setScript(File) instead. |
void |
exec() |
List<String> |
getArgs()
Returns the arguments passed to the main class to be executed.
|
List<String> |
getRhinoOptions()
Rhino options.
|
File |
getScript()
Script file.
|
List<String> |
getScriptArgs()
Script arguments.
|
void |
rhinoOptions(Object... rhinoOptions)
Sets Rhino options.
|
void |
scriptArgs(Object... scriptArgs)
Sets script arguments.
|
JavaExec |
setArgs(Iterable<?> applicationArgs)
Cannot set args directly on RhinoShellExec, use
setRhinoOptions(List) , setScriptArgs(List) and/or setScript(File) instead. |
JavaExec |
setArgs(List<String> applicationArgs)
Cannot set args directly on RhinoShellExec, use
setRhinoOptions(List) , setScriptArgs(List) and/or setScript(File) instead. |
void |
setRhinoOptions(List<String> rhinoOptions)
Sets Rhino options.
|
void |
setRhinoOptions(Object... rhinoOptions)
Sets Rhino options.
|
void |
setScript(File script)
Sets script file.
|
void |
setScript(Object script)
Sets script file.
|
void |
setScriptArgs(List<String> scriptArgs)
Sets script arguments.
|
void |
setScriptArgs(Object... scriptArgs)
Sets script arguments.
|
bootstrapClasspath, classpath, copyTo, copyTo, environment, environment, executable, getAllJvmArgs, getBootstrapClasspath, getClasspath, getCommandLine, getDebug, getDefaultCharacterEncoding, getEnableAssertions, getEnvironment, getErrorOutput, getExecActionFactory, getExecutable, getJvmArgs, getMain, getMaxHeapSize, getMinHeapSize, getStandardInput, getStandardOutput, getSystemProperties, getWorkingDir, isIgnoreExitValue, jvmArgs, jvmArgs, setAllJvmArgs, setAllJvmArgs, setBootstrapClasspath, setClasspath, setDebug, setDefaultCharacterEncoding, setEnableAssertions, setEnvironment, setErrorOutput, setExecutable, setExecutable, setIgnoreExitValue, setJvmArgs, setJvmArgs, setMain, setMaxHeapSize, setMinHeapSize, setStandardInput, setStandardOutput, setSystemProperties, setWorkingDir, setWorkingDir, systemProperties, systemProperty, workingDir
conventionMapping, conventionMapping, getConventionMapping
addValidator, appendParallelSafeAction, compareTo, configure, deleteAllActions, dependsOn, dependsOnTaskDidWork, doFirst, doFirst, doLast, doLast, execute, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExecuter, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTemporaryDir, getTemporaryDirFactory, getValidators, hasProperty, injectIntoNewInstance, isEnabled, isHasCustomActions, leftShift, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setExecuter, setFinalizedBy, setGroup, setImpliesSubProjects, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, toString
public void setRhinoOptions(List<String> rhinoOptions)
public void setRhinoOptions(Object... rhinoOptions)
public void rhinoOptions(Object... rhinoOptions)
@Internal(value="Represented as part of args") public List<String> getScriptArgs()
public void setScriptArgs(Object... scriptArgs)
public void scriptArgs(Object... scriptArgs)
@InputFile @Optional public File getScript()
public void setScript(File script)
public void setScript(Object script)
public List<String> getArgs()
getArgs
in interface JavaExecSpec
getArgs
in class JavaExec
public JavaExec setArgs(List<String> applicationArgs)
setRhinoOptions(List)
, setScriptArgs(List)
and/or setScript(File)
instead.setArgs
in interface JavaExecSpec
setArgs
in class JavaExec
applicationArgs
- Args for the main class.UnsupportedOperationException
- alwayspublic JavaExec setArgs(Iterable<?> applicationArgs)
setRhinoOptions(List)
, setScriptArgs(List)
and/or setScript(File)
instead.setArgs
in interface JavaExecSpec
setArgs
in class JavaExec
applicationArgs
- Args for the main class.UnsupportedOperationException
- alwayspublic JavaExec args(Object... args)
setRhinoOptions(List)
, setScriptArgs(List)
and/or setScript(File)
instead.args
in interface JavaExecSpec
args
in class JavaExec
args
- Args for the main class.UnsupportedOperationException
- alwayspublic JavaExecSpec args(Iterable<?> args)
setRhinoOptions(List)
, setScriptArgs(List)
and/or setScript(File)
instead.args
in interface JavaExecSpec
args
in class JavaExec
args
- Args for the main class.UnsupportedOperationException
- always