command line - Why won't Groovy print runtime arguments? -


my groovy app:

class driver {     static void main(string[] args) {         println "arg0 is: " + args[0]     } } 

when run following command:

java -jar -dshouldprint=yes myapp.jar

i get:

arg0 is: [ljava.lang.string;@a7e666

why won't groovy show me value of runtime args?

what pass not argument system property (-d). can obtained via system.properties. arguments should passed follows:

java -jar myapp.jar here1 here2 here3 

Comments