groovy startup and ~/.groovy/lib

idea #9732, vista, jdk 1.6

When I run a groovy script at the command line and import a class, as I
understand it the jar files in ~/.groovy/lib are searched. Is the same
also true if I were to launch a groovy script from within idea or must I
explicitly add ~/.groovy/lib to the project's libraries. If so, how do
get them all (the entire directory) without enumerating each jar.

Thanks.

0
2 comments
Avatar
Permanently deleted user

Mike Carifio wrote:

idea #9732, vista, jdk 1.6

When I run a groovy script at the command line and import a class, as I
understand it the jar files in ~/.groovy/lib are searched. Is the same
also true if I were to launch a groovy script from within idea or must I
explicitly add ~/.groovy/lib to the project's libraries. If so, how do
get them all (the entire directory) without enumerating each jar.

Thanks.


Need to add the lib directory explicitly to get completion.

0

Project settings, module dependencies, add library, attach jar directory

0

Please sign in to leave a comment.