From 74f06d76e6317880006e9bf4700f78b9a5d83974 Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Sat, 7 Nov 2015 07:43:25 -0800 Subject: [PATCH] Documentation for the Application plug-in. --- plug-ins/index.html | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/plug-ins/index.html b/plug-ins/index.html index 5c0c1ee..9ec04e0 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -106,7 +106,32 @@ Once you have at least one project configured, the plug-in lets you invoke the f
Clean the project
-

Packaging

+

Application

+

+ The "application" plug-in lets you run your application directly from kobaltw. You configure + it as follows: +

+
+application {
+    mainClass = "com.beust.kobalt.wrapper.Main"
+    jvmArgs("-Djava.library.path=libs", "-Ddebug=true")
+}
+
+

+ And you launch you app with "run": +

+
+./kobaltw run
+
+

Here's the list of configuration parameters for the application directive:

+
+
mainClass
+
The class in your code that contains the main function.
+
jvmArgs
+
Arguments to pass to the JVM.
+
+ +

Packaging

The Packaging plug-in lets you generate various archives for your project: jar, war and zip files, each of them defining a directive by the same name inside the assemble directive: