1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-27 00:38:11 -07:00

More template work.

This commit is contained in:
Cedric Beust 2016-02-27 19:23:29 -08:00
parent 0f00887736
commit f47c2bc8b3
7 changed files with 53 additions and 37 deletions

View file

@ -49,7 +49,7 @@ val p = {{directive}} {
}
application {
mainClass = "com.example.Example"
mainClass = "com.example.{{mainClass}}"
}

View file

@ -1,7 +1,7 @@
package {{packageName}};
class Example {
class Main {
public static void main(String[] argv) {
System.out.println("Hello world");
System.out.println("\n\nHello Java world from Kobalt\n\n");
}
}

View file

@ -0,0 +1,8 @@
package {{packageName}}
import org.testng.annotations.Test
class ExampleTest {
@Test
fun f() = println("Running test")
}

View file

@ -0,0 +1,3 @@
package {{packageName}}
fun main(args: Array<String>) = println("\n\nHello Kotlin world from Kobalt\n\n")