views:

95

answers:

1

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?

+1  A: 

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.

Michael Borgwardt