I've been putting my jar files in "lib/java" which seems to be the
convention that RI uses. I think a more Rails-esque convention would
be "vendor/java" ("vendor" contains external dependencies, "lib"
contains internal libraries) but I'm okay with "lib/java".
Cheers,
Jon
On 23/04/2007, at 1:24 PM, Robert Egglestone wrote:
> A jar file will end up on the webapp classpath if it's added to:
> RAILS_ROOT/WEB-INF/lib
>
> I'm not too sure if we could add lib/*.jar to the webapp classloader.
> It could be added to the JRuby classloader, but I would've expected
> what
> you're doing to do that already.
>
> Cheers,
> Robert
>
>
> Charles Oliver Nutter wrote:
>> I've taken to the following pattern for loading my JDBC driver:
>>
>> 1. put jar file in RAILS_ROOT/lib
>> 2. add require 'driver-filename.jar' to environment.rb
>>
>> This saves me ever having to monkey with CLASSPATH. But unfortunately
>> this doesn't work once I WAR up the app.
>>
>> So, what's the current correct way to include an arbitrary JAR
>> file in
>> the resulting WAR, and then how can we make it so I wouldn't have to
>> modify anything? :)
>>
>> - Charlie
>> _______________________________________________
>> Jruby-extras-devel mailing list
>> [email protected]
>> http://rubyforge.org/mailman/listinfo/jruby-extras-devel
>>
> _______________________________________________
> Jruby-extras-devel mailing list
> [email protected]
> http://rubyforge.org/mailman/listinfo/jruby-extras-devel
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel