diff --git a/plug-ins/index.html b/plug-ins/index.html index 56b7ff6..478097f 100644 --- a/plug-ins/index.html +++ b/plug-ins/index.html @@ -116,6 +116,51 @@ Once you have at least one project configured, the plug-in lets you invoke the f
Clean the project
+

Templates

+

+ Both the Java and Kotlin plug-ins provide templates named respectively "java" and "kotlin". +

+
+$ ./kobaltw --listTemplates
+Available templates
+  Plug-in: Kobalt
+    "java"              Generate a simple Java project
+    "kotlin"            Generate a simple Kotlin project
+ +

+ They are both identical templates so we'll just look over the Kotlin one. +

+

+ If you invoke ./kobaltw --init kotlin, the following will happen: +

+ +
+$ ./kobaltw --init kotlin
+Template "kotlin" installed
+Now you can run either `./kobaltw test` or `./kobaltw run`
+$ ./kobaltw test
+----- example:test
+===============================================
+Command line suite
+Total tests run: 1, Failures: 0, Skips: 0
+===============================================
+
+All tests passed
+BUILD SUCCESSFUL (5 seconds)
+$ ./kobaltw run
+----- example:run
+Hello Java world from Kobalt
+BUILD SUCCESSFUL (0 seconds)
+
+ + + + +

Variants

Variants let you configure your project to generate different artifacts compiled from different sources depending on the variant you selected.