Interface JavaExecSpec
- All Superinterfaces:
BaseExecSpec, JavaForkOptions, ProcessForkOptions
- All Known Implementing Classes:
JavaExec, RhinoShellExec
Specifies the options for executing a Java application.
-
Method Summary
Modifier and TypeMethodDescriptionAdds args for the main class to be executed.Adds args for the main class to be executed.Adds elements to the classpath for executing the main class.getArgs()Returns the arguments passed to the main class to be executed.Returns the classpath for executing the main class.getMain()Returns the fully qualified name of the Main class to be executed.Sets the args for the main class to be executed.Sets the args for the main class to be executed.setClasspath(FileCollection classpath) Sets the classpath for executing the main class.Sets the fully qualified name of the main class to be executed.Methods inherited from interface BaseExecSpec
getCommandLine, getErrorOutput, getStandardInput, getStandardOutput, isIgnoreExitValue, setErrorOutput, setIgnoreExitValue, setStandardInput, setStandardOutputMethods inherited from interface JavaForkOptions
bootstrapClasspath, copyTo, getAllJvmArgs, getBootstrapClasspath, getDebug, getDefaultCharacterEncoding, getEnableAssertions, getJvmArgs, getMaxHeapSize, getMinHeapSize, getSystemProperties, jvmArgs, jvmArgs, setAllJvmArgs, setAllJvmArgs, setBootstrapClasspath, setDebug, setDefaultCharacterEncoding, setEnableAssertions, setJvmArgs, setJvmArgs, setMaxHeapSize, setMinHeapSize, setSystemProperties, systemProperties, systemPropertyMethods inherited from interface ProcessForkOptions
copyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setExecutable, setWorkingDir, setWorkingDir, workingDir
-
Method Details
-
getMain
-
setMain
Sets the fully qualified name of the main class to be executed.- Parameters:
main- the fully qualified name of the main class to be executed.- Returns:
- this
-
getArgs
-
args
Adds args for the main class to be executed.- Parameters:
args- Args for the main class.- Returns:
- this
-
args
Adds args for the main class to be executed.- Parameters:
args- Args for the main class.- Returns:
- this
-
setArgs
Sets the args for the main class to be executed.- Parameters:
args- Args for the main class.- Returns:
- this
- Since:
- 4.0
-
setArgs
Sets the args for the main class to be executed.- Parameters:
args- Args for the main class.- Returns:
- this
-
classpath
Adds elements to the classpath for executing the main class.- Parameters:
paths- classpath elements- Returns:
- this
-
getClasspath
Returns the classpath for executing the main class. -
setClasspath
Sets the classpath for executing the main class.- Parameters:
classpath- the classpath- Returns:
- this
-