mirror of
https://github.com/ethauvin/kobalt-doc.git
synced 2025-04-25 12:07:10 -07:00
Document multiple application{}
This commit is contained in:
parent
498bf505a1
commit
50cce9a368
1 changed files with 17 additions and 1 deletions
|
@ -348,6 +348,8 @@ application {
|
||||||
</pre>
|
</pre>
|
||||||
<p>The <code>application</code> directive supports the following parameters:</p>
|
<p>The <code>application</code> directive supports the following parameters:</p>
|
||||||
<dl class="dl-horizontal">
|
<dl class="dl-horizontal">
|
||||||
|
<dt>taskName</dt>
|
||||||
|
<dd>The name of the task that will launch the main class (default: "run")</dd>
|
||||||
<dt>args</dt>
|
<dt>args</dt>
|
||||||
<dd>Arguments to pass to the program.</dd>
|
<dd>Arguments to pass to the program.</dd>
|
||||||
<dt>jvmArgs</dt>
|
<dt>jvmArgs</dt>
|
||||||
|
@ -355,8 +357,22 @@ application {
|
||||||
<dt>mainClass</dt>
|
<dt>mainClass</dt>
|
||||||
<dd>The class in your code that contains the <code>main</code> function.</dd>
|
<dd>The class in your code that contains the <code>main</code> function.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
<p>
|
||||||
|
Note that you can have multiple <code>application{}</code> directives, each launching a different
|
||||||
|
main class with a different task name:
|
||||||
|
</p>
|
||||||
|
<pre class="brush:java">
|
||||||
|
application {
|
||||||
|
mainClass = "com.example.Main1"
|
||||||
|
taskName = "runMain1"
|
||||||
|
}
|
||||||
|
|
||||||
<h2 class="section" id="apt">apt</h2>
|
application {
|
||||||
|
mainClass = "com.example.Main2"
|
||||||
|
taskName = "runMain2"
|
||||||
|
}</pre>
|
||||||
|
|
||||||
|
<h2 class="section" id="apt">apt</h2>
|
||||||
<p>
|
<p>
|
||||||
The <code>apt</code> plug-in adds support for <a href="https://docs.oracle.com/javase/7/docs/technotes/guides/apt/GettingStarted.html">annotation processing</a>. It's made of two parts.
|
The <code>apt</code> plug-in adds support for <a href="https://docs.oracle.com/javase/7/docs/technotes/guides/apt/GettingStarted.html">annotation processing</a>. It's made of two parts.
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue