|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
org.gradle.process.JavaForkOptions org.gradle.process.JavaExecSpec org.gradle.process.ProcessForkOptions org.gradle.process.BaseExecSpec
public interface JavaExecSpec extends BaseExecSpec, JavaForkOptions
Specifies the options for executing a Java application.
Method Summary | |
---|---|
JavaExecSpec
|
args(Object... args)
Adds args for the main class to be executed. |
JavaExecSpec
|
args(Iterable 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
|
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. |
Methods inherited from interface BaseExecSpec | |
---|---|
getCommandLine, getErrorOutput, getStandardInput, getStandardOutput, isIgnoreExitValue, setErrorOutput, setIgnoreExitValue, setStandardInput, setStandardOutput |
Method Detail |
---|
public JavaExecSpec args(Object... args)
args
- Args for the main class.
public JavaExecSpec args(Iterable args)
args
- Args for the main class.
public JavaExecSpec classpath(Object... paths)
paths
- classpath elements
public List getArgs()
public FileCollection getClasspath()
public String getMain()
public JavaExecSpec setArgs(Iterable args)
args
- Args for the main class.
public JavaExecSpec setClasspath(FileCollection classpath)
classpath
- the classpath
public JavaExecSpec setMain(String main)
main
- the fully qualified name of the main class to be executed.
Gradle API 1.12