public interface JavaExecSpec extends JavaForkOptions, BaseExecSpec
| Modifier and Type | Method and Description | 
|---|---|
| JavaExecSpec | args(Iterable<?> args)Adds args for the main class to be executed. | 
| JavaExecSpec | args(Object... args)Adds args for the main class to be executed. | 
| JavaExecSpec | classpath(Object... paths)Adds elements to the classpath for executing the main class. | 
| List<String> | getArgs()Returns the arguments passed to the main class to be executed. | 
| FileCollection | getClasspath()Returns the classpath for executing the main class. | 
| String | getMain()Returns the fully qualified name of the Main class to be executed. | 
| JavaExecSpec | setArgs(Iterable<?> 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(String main)Sets the fully qualified name of the main class to be executed. | 
bootstrapClasspath, copyTo, getAllJvmArgs, getBootstrapClasspath, getDebug, getDefaultCharacterEncoding, getEnableAssertions, getJvmArgs, getMaxHeapSize, getMinHeapSize, getSystemProperties, jvmArgs, jvmArgs, setAllJvmArgs, setBootstrapClasspath, setDebug, setDefaultCharacterEncoding, setEnableAssertions, setJvmArgs, setMaxHeapSize, setMinHeapSize, setSystemProperties, systemProperties, systemPropertygetCommandLine, getErrorOutput, getStandardInput, getStandardOutput, isIgnoreExitValue, setErrorOutput, setIgnoreExitValue, setStandardInput, setStandardOutputcopyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setWorkingDir, workingDir@Optional @Input String getMain()
JavaExecSpec setMain(String main)
main - the fully qualified name of the main class to be executed.@Optional @Input List<String> getArgs()
JavaExecSpec args(Object... args)
args - Args for the main class.JavaExecSpec args(Iterable<?> args)
args - Args for the main class.JavaExecSpec setArgs(Iterable<?> args)
args - Args for the main class.JavaExecSpec classpath(Object... paths)
paths - classpath elements@Classpath FileCollection getClasspath()
JavaExecSpec setClasspath(FileCollection classpath)
classpath - the classpath