-
-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathKissGP.groovy
More file actions
23 lines (18 loc) · 651 Bytes
/
Copy pathKissGP.groovy
File metadata and controls
23 lines (18 loc) · 651 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*
This is a demonstration program. It demonstrates the ability to run
a Groovy program from the command-line in the context of Kiss and
PostgreSQL.
First, the single file needed is KissGP.jar
It can be created with: ./bld KissGP
It will end up in the work directory.
Second, to run this file, use:
java -jar work/KissGP.jar KissGP.groovy
*/
import org.kissweb.DateTime
public static void main(String [] args) {
println "Welcome to KissGP.groovy"
int n = args.size()
for (int i=0 ; i < n ; i++)
println "arg " + (i+1) + " = " + args[i]
println DateTime.currentDateTimeFormatted()
}