Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
groovysh can be started using a -cp option to use a given classpath. (BTW, the option is missing from the docs at http://groovy.codehaus.org/Groovy+Shell
However it is rather cumbersome to use this mechanism to start groovysh to e.g. use a more convenient xml parser or such.
So I can think of some solutions:
- add an option to use the latest of all libraries in ~/.groovy/grapes
- add an option to use specific grapes on startup, which would download those if necessary and then put them on the classpath
- provide a virtual environment tool that sets the classpath according to a definition file defining the grapes to be used.
Thoughts?