If its not too many libraries and the fix looks easy, it might be worth
filing bugs with Ruby. Finding an include through manual file lookup
stuff seems like its pretty bad programming practice anyway.
I totally agree. I think it's tres goofy that it does this manual search in IRB. I really, really want IRB to run inside a jar. That said, I don't have any other specific instances of this...so there's a slim chance we're lucky and that's the only one. I wouldn't count on it though.
How do these libraries form the absolute path to the files -- is it based on something from "rbconfig" or RUBY_LIB? A wild idea, but what if, when running JRuby with a command like "java -jar jruby.jar" or when embedding, that we default jruby.home to a value like "classloader:", and then intercept all file resolution calls to check for that prefix, and if so, attempt to use ClassLoader.getResource () to resolve the file?
Please poke holes. This is something I'd be interested in hacking on, but may not start on it for a while.
/Nick
------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel