logo       

Re: Groovy and class reference resolver: msg#00177

lang.groovy.user

Subject: Re: Groovy and class reference resolver


You can also drop jars into ~/.groovy/lib -- but see
<http://www.oreillynet.com/pub/wlg/5583> for a bug workaround.

Marc Hedlund
e: marc at precipice dot org

On Wed, 24 Nov 2004, Scott Stirling wrote:

> Hi Cleverton,
>
> You have three options I know of:
> 1. drop jars into GROOVY_HOME/lib
> 2. add entries to $GROOVY_HOME/conf/groovy-classworlds.conf (or other
> classworld conf files in there, depending which groovy tool your're
> working with)
> 3. use the command line -cp or -classpath options
>
> Options 1 and 2 seem are just essentially different ways to achieve the
> same runtime. But option 2 allows cleaner separation of Groovy and your
> 3rd party libs.
>
> Option 3 seems to add the jars to the JVM system classpath, which may
> work for your needs, or may cause you CNFExceptions if your classes
> depend on anything loaded under GROOVY_HOME/lib. YMMV.
>
> See my blog entry on integrating Ant and Groovy for related info (and
> why option 3 isn't good for Ant integration):
> http://users.rcn.com/scottstirling/dev/2004/11/groovy-and-ant-
> integration-gravy.html
>
> Scott Stirling
> Framingham, MA
>
> On Nov 24, 2004, at 2:36 PM, Cleverton Hentz wrote:
>
> > Hi,
> >
> > How groovy resolve class reference ?
> > E.g, I'm like add Velocity compatibility in my groovy scripts.
> > Where I specify class path or something like this ?
> >
> > Cleverton Hentz
> >
>



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise