ApplicationPluginConvention (Gradle API 2.14.1)

org.gradle.api.plugins

## Class ApplicationPluginConvention

- java.lang.Object
- - groovy.lang.GroovyObjectSupport
  - - org.gradle.api.plugins.ApplicationPluginConvention

- All Implemented Interfaces:
    GroovyObject

      public class ApplicationPluginConvention
      extends GroovyObjectSupport

  A `Convention` used for the ApplicationPlugin.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ApplicationPluginConvention(Project project)`

  - ### Method Summary

    Methods
    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)`
    `void` | `setApplicationDistribution(CopySpec applicationDistribution)`
    `void` | `setApplicationName(String applicationName)`
    `void` | `setMainClassName(String mainClassName)`

    - ### Methods inherited from class groovy.lang.GroovyObjectSupport

      `getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ApplicationPluginConvention

          public ApplicationPluginConvention(Project project)

  - ### Method Detail

    - #### getApplicationName

          public String getApplicationName()

      The name of the application.

    - #### setApplicationName

          public void setApplicationName(String applicationName)

    - #### getMainClassName

          public String getMainClassName()

      The fully qualified name of the application's main class.

    - #### setMainClassName

          public void setMainClassName(String mainClassName)

    - #### getApplicationDefaultJvmArgs

          public Iterable<String> getApplicationDefaultJvmArgs()

      Array of string arguments to pass to the JVM when running the application

    - #### setApplicationDefaultJvmArgs

          public void setApplicationDefaultJvmArgs(Iterable<String> applicationDefaultJvmArgs)

    - #### getApplicationDistribution

          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.

    - #### setApplicationDistribution

          public void setApplicationDistribution(CopySpec applicationDistribution)

    - #### getProject

          public final Project getProject()