Package org.gradle.api.plugins
Klasse ApplicationPluginConvention
java.lang.Object
org.gradle.api.plugins.ApplicationPluginConvention
Veraltet.
The Convention used for configuring the ApplicationPlugin.
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungVeraltet.Array of string arguments to pass to the JVM when running the applicationabstract CopySpecVeraltet.The specification of the contents of the distribution.abstract StringVeraltet.The name of the application.abstract StringVeraltet.Directory to place executables inabstract StringVeraltet.The fully qualified name of the application's main class.abstract ProjectVeraltet.abstract voidsetApplicationDefaultJvmArgs(Iterable<String> applicationDefaultJvmArgs) Veraltet.Array of string arguments to pass to the JVM when running the applicationabstract voidsetApplicationDistribution(CopySpec applicationDistribution) Veraltet.abstract voidsetApplicationName(String applicationName) Veraltet.The name of the application.abstract voidsetExecutableDir(String executableDir) Veraltet.Directory to place executables inabstract voidsetMainClassName(String mainClassName) Veraltet.The fully qualified name of the application's main class.
-
Konstruktordetails
-
ApplicationPluginConvention
public ApplicationPluginConvention()Veraltet.
-
-
Methodendetails
-
getApplicationName
Veraltet.The name of the application. -
setApplicationName
Veraltet.The name of the application. -
getMainClassName
Veraltet.The fully qualified name of the application's main class. -
setMainClassName
Veraltet.The fully qualified name of the application's main class. -
getApplicationDefaultJvmArgs
Veraltet.Array of string arguments to pass to the JVM when running the application -
setApplicationDefaultJvmArgs
Veraltet.Array of string arguments to pass to the JVM when running the application -
getExecutableDir
Veraltet.Directory to place executables in- Seit:
- 4.5
-
setExecutableDir
Veraltet.Directory to place executables in- Seit:
- 4.5
-
getApplicationDistribution
Veraltet.The specification of the contents of the distribution.
Use this
CopySpecto include extra files/resource in the application distribution.plugins { id 'application' } application { applicationDistribution.from("some/dir") { include "*.txt" } }Note that the application plugin pre configures this spec to; include the contents of "
src/dist", copy the application start scripts into the "bin" directory, and copy the built jar and its dependencies into the "lib" directory. -
setApplicationDistribution
Veraltet. -
getProject
Veraltet.
-
JavaApplicationinstead. This class is scheduled for removal in Gradle 9.0.