Bugs item #10998, was opened at 2007-05-22 08:39
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=10998&group_id=2014
Category: rails-integration
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Ashish Sahni (whacko)
Assigned to: Robert Egglestone (tantalon)
Summary: add WEB-INF/lib to jruby-runtime loadpath
Initial Comment:
For 'require xyz.jar' to work from a ruby script,
the directory containing xyz.jar needs to be added
to the runtime's load path.
Typically for a webapp the jars would reside in WEB-INF/lib
and therefore adding WEB-INF/lib would make sense.
The code changes would look something like
// RailsContextListener.java
railsFactory.addToLoadPath(getPath("/WEB-INF/lib"))
// RailsFactory.java
List lps = new ArrayList();
public void addToLoadPath(String s) { lps.add(s); }
// in makeObject
loadPaths.addAll(lps);
----------------------------------------------------------------------
>Comment By: Robert Egglestone (tantalon)
Date: 2007-05-22 09:21
Message:
The jars are automatically added to the classpath, and the classpath is on the
loadpath.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=7857&aid=10998&group_id=2014
_______________________________________________
Jruby-extras-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/jruby-extras-devel