|
Re: [jruby-user] Classpath in JRuby: msg#00233lang.jruby.user
On 11/28/07, Jason Vinson <vinsonizer@xxxxxxxxx> wrote: > Hi, > > I am running some TestUnit testcases to exercise remote Java apis with JRuby > and it's all working great. One thing that I have to do to run these tests > is include some specific jars on the classpath. I've found that I can > construct the classpath manually, but I wanted to see if there was a more > elegant solution. I also know I can use the JRUBY_HOME/lib dir, but i'd > rather not pollute it with these jars, as they will change over time as the > code is developed. > > What i was hoping (which is probably impossible) was that I could do > something like this: > > Dir['jars/*.jar'].each {|x| require x} > > The above obviously doesn't work, but I thought it sure looked nice :) > > Are there any elegant solutions that are available that I am missing? > Did you try it? /Nick --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [jruby-user] Running JRuby on Jetty I get directory listing: 00233, Brian Leonard |
|---|---|
| Next by Date: | Re: [jruby-user] Classpath in JRuby: 00233, Jason Vinson |
| Previous by Thread: | [jruby-user] Classpath in JRubyi: 00233, Jason Vinson |
| Next by Thread: | Re: [jruby-user] Classpath in JRuby: 00233, Jason Vinson |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |