Comparable<Task>
, org.gradle.api.internal.DynamicObjectAware
, org.gradle.api.internal.IConventionAware
, org.gradle.api.internal.TaskInternal
, ExtensionAware
, Task
, BaseExecSpec
, JavaExecSpec
, JavaForkOptions
, ProcessForkOptions
, org.gradle.util.Configurable<Task>
@NonNullApi public class RhinoShellExec extends JavaExec
Task.Namer
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
Constructor | Description |
---|---|
RhinoShellExec() |
Modifier and Type | Method | 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(Object... rhinoOptions) |
Sets Rhino options.
|
void |
setRhinoOptions(List<String> rhinoOptions) |
Sets Rhino options.
|
void |
setScript(File script) |
Sets script file.
|
void |
setScript(Object script) |
Sets script file.
|
void |
setScriptArgs(Object... scriptArgs) |
Sets script arguments.
|
void |
setScriptArgs(List<String> scriptArgs) |
Sets script arguments.
|
bootstrapClasspath, classpath, copyTo, copyTo, environment, environment, executable, getAllJvmArgs, getArgumentProviders, getBootstrapClasspath, getClasspath, getCommandLine, getDebug, getDefaultCharacterEncoding, getEnableAssertions, getEnvironment, getErrorOutput, getExecActionFactory, getExecutable, getJavaVersion, getJvmArgs, getJvmArgumentProviders, getMain, getMaxHeapSize, getMinHeapSize, getStandardInput, getStandardOutput, getSystemProperties, getWorkingDir, isIgnoreExitValue, jvmArgs, jvmArgs, setAllJvmArgs, setAllJvmArgs, setArgsString, 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
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
appendParallelSafeAction, compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getAsDynamicObject, getConvention, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getIdentityPath, getImpliesSubProjects, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOnlyIf, getOutputs, getPath, getProject, getServices, getShouldRunAfter, getStandardOutputCapture, getState, getTaskActions, getTaskDependencies, getTaskIdentity, getTemporaryDir, getTemporaryDirFactory, getTimeout, hasProperty, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, mustRunAfter, onlyIf, onlyIf, prependParallelSafeAction, property, replaceLogger, setActions, setDependsOn, setDescription, setDidWork, setEnabled, 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("Represented as part of args") public List<String> getScriptArgs()
public void setScriptArgs(Object... scriptArgs)
public void scriptArgs(Object... scriptArgs)
@Nullable @Optional @PathSensitive(RELATIVE) @InputFile public File getScript()
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