<commit_before><!--
  ~ Copyright 2011 the original author or authors.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<chapter id='application_plugin' xmlns:xi="http://www.w3.org/2001/XInclude">
    <title>The Application Plugin</title>
    <para>The Gradle application plugin extends the language plugins with common application related tasks.
	It allows running and bundling projects.
	</para>

    <section>
        <title>Usage</title>
        <para>To use the application plugin, include in your build script:</para>
        <sample id="useApplicationPlugin" dir="application" title="Using the application plugin">
            <sourcefile file="build.gradle" snippet="use-plugin"/>
        </sample>
	<para>To define the main-class for the application you have to set the <literal>mainClassName</literal> property as shown below</para>
	<sample id="useApplicationPlugin" dir="application" title="Configure the announce plugin">
            <sourcefile file="build.gradle" snippet="mainClassName-conf"/>
        </sample>
    </section>
    <section>
        <title>Tasks</title>
        <para>The Application plugin adds the following tasks to the project.</para>
        <table>
            <title>Application plugin - tasks</title>
            <thead>
                <tr>
                    <td>Task name</td>
                    <td>Depends on</td>
                    <td>Type</td>
                    <td>Description</td>
                </tr>
            </thead>
            <tr>
                <td>
                    <literal>run</literal>
                </td>
                <td>
                    <literal>classes</literal>
                </td>
                <td><apilink class="org.gradle.api.tasks.JavaExec"/></td>
                <td>Starts the application.</td>
            </tr>
        </table>
    </section>

    <section>
            <title>Convention properties</title>
            <table>
                <title>War plugin - directory properties</title>
                <thead>
                    <tr>
                        <td>Property name</td>
                        <td>Type</td>
                        <td>Default value</td>
                        <td>Description</td>
                    </tr>
                </thead>
                <tr>
                    <td>
                        <literal>mainClassName</literal>
                    </td>
                    <td>
                        <classname>String</classname>
                    </td>
                    <td>
                        -
                    </td>
                    <td>
                        The full qualified name of the Main class of the application.
                    </td>
                </tr>
            </table>

            <para>These properties are provided by a <apilink class="org.gradle.api.plugins.ApplicationPluginConvention"/>
                convention object.
            </para>
    </section>
</chapter><commit_msg>GRADLE-1326 - Updated application plugin user guide chapter<commit_after><!--
  ~ Copyright 2011 the original author or authors.
  ~
  ~ Licensed under the Apache License, Version 2.0 (the "License");
  ~ you may not use this file except in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~      http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing, software
  ~ distributed under the License is distributed on an "AS IS" BASIS,
  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  ~ See the License for the specific language governing permissions and
  ~ limitations under the License.
  -->
<chapter id='application_plugin'>
    <title>The Application Plugin</title>
    <para>The Gradle application plugin extends the language plugins with common application related tasks.
	It allows running and bundling projects.
	</para>

    <section>
        <title>Usage</title>
        <para>To use the application plugin, include in your build script:</para>
        <sample id="useApplicationPlugin" dir="application" title="Using the application plugin">
            <sourcefile file="build.gradle" snippet="use-plugin"/>
        </sample>
	<para>To define the main-class for the application you have to set the <literal>mainClassName</literal> property as shown below</para>
	<sample id="useApplicationPlugin" dir="application" title="Configure the announce plugin">
            <sourcefile file="build.gradle" snippet="mainClassName-conf"/>
        </sample>
    </section>
    <section>
        <title>Tasks</title>
        <para>The Application plugin adds the following tasks to the project.</para>
        <table>
            <title>Application plugin - tasks</title>
            <thead>
                <tr>
                    <td>Task name</td>
                    <td>Depends on</td>
                    <td>Type</td>
                    <td>Description</td>
                </tr>
            </thead>
            <tr>
                <td>
                    <literal>run</literal>
                </td>
                <td>
                    <literal>classes</literal>
                </td>
                <td><apilink class="org.gradle.api.tasks.JavaExec"/></td>
                <td>Starts the application.</td>
            </tr>
        </table>
    </section>

    <section>
            <title>Convention properties</title>
            <table>
                <title>Application plugin - directory properties</title>
                <thead>
                    <tr>
                        <td>Property name</td>
                        <td>Type</td>
                        <td>Default value</td>
                        <td>Description</td>
                    </tr>
                </thead>
                <tr>
                    <td>
                        <literal>mainClassName</literal>
                    </td>
                    <td>
                        <classname>String</classname>
                    </td>
                    <td>
                        -
                    </td>
                    <td>
                        The fully qualified name of the Main class of the application.
                    </td>
                </tr>
            </table>

            <para>These properties are provided by a <apilink class="org.gradle.api.plugins.ApplicationPluginConvention"/>
                convention object.
            </para>
    </section>
</chapter>
{'fraction_non_alphanumeric': 0.10236332574031891, 'fraction_numerical': 0.0035592255125284737, 'mean_word_length': 1.5152166129609739, 'pattern_counts': {'":': 0, '<': 197, '<?xml version=': 0, '>': 197, 'https://': 0, 'lorem ipsum': 0, 'www.': 3, 'xml': 1}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '253967', 'n_tokens_mistral': 1788, 'n_tokens_neox': 1665, 'n_words': 524}