@Incubating public interface JavaApplication
An instance of this type is added as a project extension by the Java application plugin under the name 'application'.
 apply plugin: 'application'
 application {
   mainClassName 'com.foo.bar.FooBar'
 }
 | Modifier and Type | Method | Description | 
|---|---|---|
| Iterable<String> | getApplicationDefaultJvmArgs() | Array of string arguments to pass to the JVM when running the application | 
| CopySpec | getApplicationDistribution() | The specification of the contents of the distribution. | 
| String | getApplicationName() | The name of the application. | 
| String | getExecutableDir() | Directory to place executables in | 
| String | getMainClassName() | The fully qualified name of the application's main class. | 
| void | setApplicationDefaultJvmArgs(Iterable<String> applicationDefaultJvmArgs) | Array of string arguments to pass to the JVM when running the application | 
| void | setApplicationDistribution(CopySpec applicationDistribution) | |
| void | setApplicationName(String applicationName) | The name of the application. | 
| void | setExecutableDir(String executableDir) | Directory to place executables in | 
| void | setMainClassName(String mainClassName) | The fully qualified name of the application's main class. | 
String getApplicationName()
void setApplicationName(String applicationName)
String getMainClassName()
void setMainClassName(String mainClassName)
Iterable<String> getApplicationDefaultJvmArgs()
void setApplicationDefaultJvmArgs(Iterable<String> applicationDefaultJvmArgs)
String getExecutableDir()
void setExecutableDir(String executableDir)
CopySpec getApplicationDistribution()
The specification of the contents of the distribution.
 Use this CopySpec to include extra files/resource in the application distribution.
 
 apply plugin: '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.
void setApplicationDistribution(CopySpec applicationDistribution)