BaseExecSpec, JavaForkOptions, ProcessForkOptionsJavaExec, RhinoShellExecpublic interface JavaExecSpec extends JavaForkOptions, BaseExecSpec
| Modifier and Type | Method | Description | 
|---|---|---|
| JavaExecSpec | args(java.lang.Iterable<?> args) | Adds args for the main class to be executed. | 
| JavaExecSpec | args(java.lang.Object... args) | Adds args for the main class to be executed. | 
| JavaExecSpec | classpath(java.lang.Object... paths) | Adds elements to the classpath for executing the main class. | 
| java.util.List<java.lang.String> | getArgs() | Returns the arguments passed to the main class to be executed. | 
| java.util.List<CommandLineArgumentProvider> | getArgumentProviders() | Argument providers for the application. | 
| FileCollection | getClasspath() | Returns the classpath for executing the main class. | 
| java.lang.String | getMain() | Returns the fully qualified name of the Main class to be executed. | 
| JavaExecSpec | setArgs(java.lang.Iterable<?> args) | Sets the args for the main class to be executed. | 
| JavaExecSpec | setArgs(java.util.List<java.lang.String> args) | Sets the args for the main class to be executed. | 
| JavaExecSpec | setClasspath(FileCollection classpath) | Sets the classpath for executing the main class. | 
| JavaExecSpec | setMain(java.lang.String main) | Sets the fully qualified name of the main class to be executed. | 
getCommandLine, getErrorOutput, getStandardInput, getStandardOutput, isIgnoreExitValue, setErrorOutput, setIgnoreExitValue, setStandardInput, setStandardOutputbootstrapClasspath, copyTo, getAllJvmArgs, getBootstrapClasspath, getDebug, getDefaultCharacterEncoding, getEnableAssertions, getJvmArgs, getJvmArgumentProviders, getMaxHeapSize, getMinHeapSize, getSystemProperties, jvmArgs, jvmArgs, setAllJvmArgs, setAllJvmArgs, setBootstrapClasspath, setDebug, setDefaultCharacterEncoding, setEnableAssertions, setJvmArgs, setJvmArgs, setMaxHeapSize, setMinHeapSize, setSystemProperties, systemProperties, systemPropertycopyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setExecutable, setWorkingDir, setWorkingDir, workingDir@Nullable @Optional @Input java.lang.String getMain()
JavaExecSpec setMain(@Nullable java.lang.String main)
main - the fully qualified name of the main class to be executed.@Nullable @Optional @Input java.util.List<java.lang.String> getArgs()
JavaExecSpec args(java.lang.Object... args)
args - Args for the main class.JavaExecSpec args(java.lang.Iterable<?> args)
args - Args for the main class.JavaExecSpec setArgs(@Nullable java.util.List<java.lang.String> args)
args - Args for the main class.JavaExecSpec setArgs(@Nullable java.lang.Iterable<?> args)
args - Args for the main class.@Incubating java.util.List<CommandLineArgumentProvider> getArgumentProviders()
JavaExecSpec classpath(java.lang.Object... paths)
paths - classpath elements@Classpath FileCollection getClasspath()
JavaExecSpec setClasspath(FileCollection classpath)
classpath - the classpath