public class ApplicationPluginConvention extends Object
The Convention used for configuring the ApplicationPlugin.
| Constructor and Description | 
|---|
| ApplicationPluginConvention(Project project) | 
| Modifier and Type | Method and 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 | getMainClassName()The fully qualified name of the application's main class. | 
| Project | getProject() | 
| 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 | setMainClassName(String mainClassName)The fully qualified name of the application's main class. | 
public ApplicationPluginConvention(Project project)
public String getApplicationName()
public void setApplicationName(String applicationName)
public String getMainClassName()
public void setMainClassName(String mainClassName)
public Iterable<String> getApplicationDefaultJvmArgs()
public void setApplicationDefaultJvmArgs(Iterable<String> applicationDefaultJvmArgs)
public 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.
public void setApplicationDistribution(CopySpec applicationDistribution)
public final Project getProject()