Arne Vajhøj
2023-10-18 00:12:52 UTC
Just tested. Groovy 4.x works fine on VMS x86-64.
groovy.com:
$ p1 = f$edit(p1, "UPCASE")
$ clz = ""
$ if p1 .eqs. "RUN" then clz = "groovy.ui.GroovyMain"
$ if p1 .eqs. "COMPILE" then clz =
"org.codehaus.groovy.tools.FileSystemCompiler"
$ if p1 .eqs. "CONSOLE" then clz = groovy.ui.Console"
$ if p1 .eqs. "SHELL" then clz = "org.codehaus.groovy.tools.shell.Main"
$ parent = "/disk2/arne/groovy"
$ ver = "4.0.12"
$ groovyhome = "''parent'/groovy-''ver'"
$ xmx = "''groovy_xmx'"
$ if xmx .eqs. "" then xmx = "256m"
$ cp = "''groovy_cp'"
$ if cp .eqs. "" then cp = "."
$ java -
"-Xmx''xmx'" -
"-Dprogram.name"="" -
"-Dgroovy.home"="''groovyhome'" -
"-Dtools.jar"="/sys$sysdevice/sys0/syscommon/java$80/lib/tools.jar" -
"-Dgroovy.starter.conf"="''groovyhome'/conf/groovy-starter.conf" -
"-Dscript.name"="''p2'" -
-classpath "''groovyhome'/lib/groovy-''ver'.jar" -
"org.codehaus.groovy.tools.GroovyStarter" -
--main "''clz'" -
--conf "''groovyhome'/conf/groovy-starter.conf" -
--classpath "''cp'" -
'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
$ if p1 .eqs. "COMPILE" then write sys$output "Run with java -cp
.:''groovyhome'/lib/* <main-class>"
$ exit
groovydef.com:
$ defdir = f$env("default")
$ groovy :== @'defdir'groovy run
$ groovyc :== @'defdir'groovy compile
$ groovyconsole :== @'defdir'groovy console
$ groovysh :== @'defdir'groovy shell
$ exit
test:
$ type test.groovy
println("It works!")
$ groovy test.groovy
It works!
$ groovyc test.groovy
Run with java -cp .:/disk2/arne/groovy/groovy-4.0.12/lib/* <main-class>
$ java -cp .:/disk2/arne/groovy/groovy-4.0.12/lib/* TEST
It works!
Arne
groovy.com:
$ p1 = f$edit(p1, "UPCASE")
$ clz = ""
$ if p1 .eqs. "RUN" then clz = "groovy.ui.GroovyMain"
$ if p1 .eqs. "COMPILE" then clz =
"org.codehaus.groovy.tools.FileSystemCompiler"
$ if p1 .eqs. "CONSOLE" then clz = groovy.ui.Console"
$ if p1 .eqs. "SHELL" then clz = "org.codehaus.groovy.tools.shell.Main"
$ parent = "/disk2/arne/groovy"
$ ver = "4.0.12"
$ groovyhome = "''parent'/groovy-''ver'"
$ xmx = "''groovy_xmx'"
$ if xmx .eqs. "" then xmx = "256m"
$ cp = "''groovy_cp'"
$ if cp .eqs. "" then cp = "."
$ java -
"-Xmx''xmx'" -
"-Dprogram.name"="" -
"-Dgroovy.home"="''groovyhome'" -
"-Dtools.jar"="/sys$sysdevice/sys0/syscommon/java$80/lib/tools.jar" -
"-Dgroovy.starter.conf"="''groovyhome'/conf/groovy-starter.conf" -
"-Dscript.name"="''p2'" -
-classpath "''groovyhome'/lib/groovy-''ver'.jar" -
"org.codehaus.groovy.tools.GroovyStarter" -
--main "''clz'" -
--conf "''groovyhome'/conf/groovy-starter.conf" -
--classpath "''cp'" -
'p2' 'p3' 'p4' 'p5' 'p6' 'p7' 'p8'
$ if p1 .eqs. "COMPILE" then write sys$output "Run with java -cp
.:''groovyhome'/lib/* <main-class>"
$ exit
groovydef.com:
$ defdir = f$env("default")
$ groovy :== @'defdir'groovy run
$ groovyc :== @'defdir'groovy compile
$ groovyconsole :== @'defdir'groovy console
$ groovysh :== @'defdir'groovy shell
$ exit
test:
$ type test.groovy
println("It works!")
$ groovy test.groovy
It works!
$ groovyc test.groovy
Run with java -cp .:/disk2/arne/groovy/groovy-4.0.12/lib/* <main-class>
$ java -cp .:/disk2/arne/groovy/groovy-4.0.12/lib/* TEST
It works!
Arne