Added annotation with template example.
This commit is contained in:
parent
d74d2b5fdf
commit
b1602c78a9
3 changed files with 6 additions and 2 deletions
|
@ -1,8 +1,10 @@
|
|||
package com.example;
|
||||
|
||||
import net.thauvin.erik.semver.Version;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
|
||||
//@Version(properties = "version.properties", template = "example.mustache")
|
||||
@Version(properties = "version.properties")
|
||||
public class Example {
|
||||
public static void main(final String... args) {
|
||||
|
|
|
@ -19,4 +19,4 @@ public class Example {
|
|||
|
||||
System.out.println("-----------------------------------------------------");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,10 +3,12 @@ package com.example
|
|||
import net.thauvin.erik.semver.Version
|
||||
import java.text.SimpleDateFormat
|
||||
|
||||
//@Version(properties = "version.properties", type = "kt", template = "example.mustache")
|
||||
@Version(properties = "version.properties", type = "kt")
|
||||
class Main {
|
||||
companion object {
|
||||
@JvmStatic fun main(args: Array<String>) {
|
||||
@JvmStatic
|
||||
fun main(args: Array<String>) {
|
||||
val sdf = SimpleDateFormat("EEE, d MMM yyyy 'at' HH:mm:ss z")
|
||||
|
||||
println("-----------------------------------------------------")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue