invoking groovy without passing a classpath each time
In a windows environemnt, how can I invoke groovy without having to开发者_运维百科 specifiy the classpath for a given set of JARs each time? I am trying to create a script for an admin so that he can just type groovy deploy [project name]
.
Edit: Is there anyway to do this through a class path environment variable? Or some other centralized configuration?
The typical way to do this is to write a shell script that calls the Groovy/Java program and passes the desired classpath on the command line.
精彩评论