|
Re: Groovy and class reference resolver: msg#00182lang.groovy.user
Hi Scott, In my case i'm using groovy through of jEdit plugin, SuperScript, only for learning. In the moment i don't use neither groovyConsole or groovysh for my tests. When i use groovy script embedded in a application, where do i configure a class path of a groovy scripts ? ----- Original Message ----- From: "Scott Stirling" <scottstirling-KealBaEQdz4@xxxxxxxxxxxxxxxx> To: <user-i9PBDF1N6cxnkHa44VUL00B+6BGkLq7r@xxxxxxxxxxxxxxxx> Sent: Wednesday, November 24, 2004 6:50 PM Subject: Re: [groovy-user] Groovy and class reference resolver > 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> |
|---|---|---|
| Previous by Date: | Re: Newbie question ;), Atif Shahab |
|---|---|
| Next by Date: | Groovy Support in IntelliJ IDEA, Guillaume Laforge |
| Previous by Thread: | Re: Groovy and class reference resolver, Marc Hedlund |
| Next by Thread: | Newbie question ;), foxmask |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |