Package org.gradle.process
Schnittstelle JavaExecSpec
- Alle Superschnittstellen:
BaseExecSpec,JavaForkOptions,ProcessForkOptions
- Alle bekannten Implementierungsklassen:
JavaExec
Specifies the options for executing a Java application.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungAdds 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.Argument providers for the application.Returns the classpath for executing the main class.Extra JVM arguments to be to use to launch the JVM for the process.The fully qualified name of the Main class to be executed.The name of the main module to be executed if the application should run as a Java module.Returns the module path handling for executing the main class.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.default JavaExecSpecVeraltet.Von Schnittstelle geerbte Methoden org.gradle.process.BaseExecSpec
getCommandLine, getErrorOutput, getStandardInput, getStandardOutput, isIgnoreExitValue, setErrorOutput, setIgnoreExitValue, setStandardInput, setStandardOutputVon Schnittstelle geerbte Methoden org.gradle.process.JavaForkOptions
bootstrapClasspath, copyTo, debugOptions, getAllJvmArgs, getBootstrapClasspath, getDebug, getDebugOptions, getDefaultCharacterEncoding, getEnableAssertions, getJvmArgs, getJvmArgumentProviders, getMaxHeapSize, getMinHeapSize, getSystemProperties, jvmArgs, jvmArgs, setAllJvmArgs, setAllJvmArgs, setBootstrapClasspath, setDebug, setDefaultCharacterEncoding, setEnableAssertions, setJvmArgs, setJvmArgs, setMaxHeapSize, setMinHeapSize, setSystemProperties, systemProperties, systemPropertyVon Schnittstelle geerbte Methoden org.gradle.process.ProcessForkOptions
copyTo, environment, environment, executable, getEnvironment, getExecutable, getWorkingDir, setEnvironment, setExecutable, setExecutable, setWorkingDir, setWorkingDir, workingDir
-
Methodendetails
-
getJvmArguments
Extra JVM arguments to be to use to launch the JVM for the process. Must be used to set a convention for JVM arguments.- Seit:
- 8.1
-
getMainModule
The name of the main module to be executed if the application should run as a Java module.- Seit:
- 6.4
-
getMainClass
The fully qualified name of the Main class to be executed.This does not need to be set if using an Executable Jar with a
Main-Classattribute.- Seit:
- 6.4
-
setMain
Veraltet.UsegetMainClass().set(main) instead. This method will be removed in Gradle 9.0.Sets the fully qualified name of the main class to be executed.- Parameter:
main- the fully qualified name of the main class to be executed.- Gibt zurück:
- this
-
getArgs
Returns the arguments passed to the main class to be executed. -
args
Adds args for the main class to be executed.- Parameter:
args- Args for the main class.- Gibt zurück:
- this
-
args
Adds args for the main class to be executed.- Parameter:
args- Args for the main class.- Gibt zurück:
- this
-
setArgs
Sets the args for the main class to be executed.- Parameter:
args- Args for the main class.- Gibt zurück:
- this
- Seit:
- 4.0
-
setArgs
Sets the args for the main class to be executed.- Parameter:
args- Args for the main class.- Gibt zurück:
- this
-
getArgumentProviders
List<CommandLineArgumentProvider> getArgumentProviders()Argument providers for the application.- Seit:
- 4.6
-
classpath
Adds elements to the classpath for executing the main class.- Parameter:
paths- classpath elements- Gibt zurück:
- this
-
getClasspath
Returns the classpath for executing the main class. -
setClasspath
Sets the classpath for executing the main class.- Parameter:
classpath- the classpath- Gibt zurück:
- this
-
getModularity
ModularitySpec getModularity()Returns the module path handling for executing the main class.- Seit:
- 6.4
-
getMainClass().set(main) instead.