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, debugOptions, environment, environment, executable, getAllJvmArgs, getArgumentProviders, getBootstrapClasspath, getClasspath, getCommandLine, getDebug, getDebugOptions, getDefaultCharacterEncoding, getEnableAssertions, getEnvironment, getErrorOutput, getExecActionFactory, getExecutable, getExecutionResult, getJavaLauncher, getJavaVersion, getJvmArgs, getJvmArgumentProviders, getMain, getMainClass, getMainModule, getMaxHeapSize, getMinHeapSize, getModularity, getObjectFactory, getProviderFactory, 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
compareTo, configure, dependsOn, doFirst, doFirst, doFirst, doLast, doLast, doLast, finalizedBy, getActions, getAnt, getDependsOn, getDescription, getDestroyables, getDidWork, getEnabled, getExtensions, getFinalizedBy, getGroup, getInputs, getLocalState, getLogger, getLogging, getMustRunAfter, getName, getOutputs, getPath, getProject, getShouldRunAfter, getState, getTaskDependencies, getTemporaryDir, getTimeout, hasProperty, mustRunAfter, onlyIf, onlyIf, property, setActions, setDependsOn, setDescription, setDidWork, setEnabled, setFinalizedBy, setGroup, setMustRunAfter, setOnlyIf, setOnlyIf, setProperty, setShouldRunAfter, shouldRunAfter, usesService
appendParallelSafeAction, getAsDynamicObject, getConvention, getIdentityPath, getImpliesSubProjects, getOnlyIf, getRequiredServices, getServices, getSharedResources, getStandardOutputCapture, getTaskActions, getTaskIdentity, getTemporaryDirFactory, hasTaskActions, injectIntoNewInstance, isEnabled, isHasCustomActions, prependParallelSafeAction, setImpliesSubProjects, setLoggerMessageRewriter
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConvention
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