开发者

invoking groovy without passing a classpath each time

开发者 https://www.devze.com 2022-12-27 16:51 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号