Class RhinoShellExec
- java.lang.Object
-
- org.gradle.api.internal.AbstractTask
-
- org.gradle.api.DefaultTask
-
- org.gradle.api.internal.ConventionTask
-
- org.gradle.api.tasks.JavaExec
-
- org.gradle.plugins.javascript.rhino.RhinoShellExec
-
- All Implemented Interfaces:
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gradle.api.Task
Task.Namer
-
-
Field Summary
-
Fields inherited from interface org.gradle.api.Task
TASK_ACTION, TASK_CONSTRUCTOR_ARGS, TASK_DEPENDS_ON, TASK_DESCRIPTION, TASK_GROUP, TASK_NAME, TASK_OVERWRITE, TASK_TYPE
-
-
Constructor Summary
Constructors Constructor Description RhinoShellExec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaExecSpecargs(Iterable<?> args)Cannot set args directly on RhinoShellExec, usesetRhinoOptions(List),setScriptArgs(List)and/orsetScript(File)instead.JavaExecargs(Object... args)Cannot set args directly on RhinoShellExec, usesetRhinoOptions(List),setScriptArgs(List)and/orsetScript(File)instead.voidexec()List<String>getArgs()Returns the arguments passed to the main class to be executed.List<String>getRhinoOptions()Rhino options.FilegetScript()Script file.List<String>getScriptArgs()Script arguments.voidrhinoOptions(Object... rhinoOptions)Sets Rhino options.voidscriptArgs(Object... scriptArgs)Sets script arguments.JavaExecsetArgs(Iterable<?> applicationArgs)Cannot set args directly on RhinoShellExec, usesetRhinoOptions(List),setScriptArgs(List)and/orsetScript(File)instead.JavaExecsetArgs(List<String> applicationArgs)Cannot set args directly on RhinoShellExec, usesetRhinoOptions(List),setScriptArgs(List)and/orsetScript(File)instead.voidsetRhinoOptions(Object... rhinoOptions)Sets Rhino options.voidsetRhinoOptions(List<String> rhinoOptions)Sets Rhino options.voidsetScript(File script)Sets script file.voidsetScript(Object script)Sets script file.voidsetScriptArgs(Object... scriptArgs)Sets script arguments.voidsetScriptArgs(List<String> scriptArgs)Sets script arguments.-
Methods inherited from class org.gradle.api.tasks.JavaExec
bootstrapClasspath, classpath, copyTo, copyTo, environment, environment, executable, getAllJvmArgs, getArgumentProviders, getBootstrapClasspath, getClasspath, getCommandLine, getDebug, getDefaultCharacterEncoding, getEnableAssertions, getEnvironment, getErrorOutput, getExecActionFactory, getExecutable, 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
-
Methods inherited from class org.gradle.api.internal.ConventionTask
conventionMapping, conventionMapping, getConventionMapping
-
Methods inherited from class org.gradle.api.DefaultTask
newInputDirectory, newInputFile, newOutputDirectory, newOutputFile
-
Methods inherited from class org.gradle.api.internal.AbstractTask
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
-
-
-
-
Method Detail
-
setRhinoOptions
public void setRhinoOptions(List<String> rhinoOptions)
Sets Rhino options.- Since:
- 4.0
-
setRhinoOptions
public void setRhinoOptions(Object... rhinoOptions)
Sets Rhino options.
-
rhinoOptions
public void rhinoOptions(Object... rhinoOptions)
Sets Rhino options.
-
getScriptArgs
@Internal("Represented as part of args") public List<String> getScriptArgs()
Script arguments.
-
setScriptArgs
public void setScriptArgs(Object... scriptArgs)
Sets script arguments.
-
scriptArgs
public void scriptArgs(Object... scriptArgs)
Sets script arguments.
-
getScript
@Nullable @Optional @PathSensitive(RELATIVE) @InputFile public File getScript()
Script file.
-
getArgs
public List<String> getArgs()
Returns the arguments passed to the main class to be executed.- Specified by:
getArgsin interfaceJavaExecSpec- Overrides:
getArgsin classJavaExec
-
setArgs
public JavaExec setArgs(List<String> applicationArgs)
Cannot set args directly on RhinoShellExec, usesetRhinoOptions(List),setScriptArgs(List)and/orsetScript(File)instead.- Specified by:
setArgsin interfaceJavaExecSpec- Overrides:
setArgsin classJavaExec- Parameters:
applicationArgs- Args for the main class.- Returns:
- this
- Throws:
UnsupportedOperationException- always- Since:
- 4.0
-
setArgs
public JavaExec setArgs(Iterable<?> applicationArgs)
Cannot set args directly on RhinoShellExec, usesetRhinoOptions(List),setScriptArgs(List)and/orsetScript(File)instead.- Specified by:
setArgsin interfaceJavaExecSpec- Overrides:
setArgsin classJavaExec- Parameters:
applicationArgs- Args for the main class.- Returns:
- this
- Throws:
UnsupportedOperationException- always
-
args
public JavaExec args(Object... args)
Cannot set args directly on RhinoShellExec, usesetRhinoOptions(List),setScriptArgs(List)and/orsetScript(File)instead.- Specified by:
argsin interfaceJavaExecSpec- Overrides:
argsin classJavaExec- Parameters:
args- Args for the main class.- Returns:
- this
- Throws:
UnsupportedOperationException- always
-
args
public JavaExecSpec args(Iterable<?> args)
Cannot set args directly on RhinoShellExec, usesetRhinoOptions(List),setScriptArgs(List)and/orsetScript(File)instead.- Specified by:
argsin interfaceJavaExecSpec- Overrides:
argsin classJavaExec- Parameters:
args- Args for the main class.- Returns:
- this
- Throws:
UnsupportedOperationException- always
-
-