I'd love to be able to do this, and yes we've talked about this as the ultimate goal. JRuby in a Jar, JRuby + Rails + JMongrel + your app in a Jar, Rake in a Jar, and so on. These are the holy grails.

HOWEVER

Ruby's libraries suffer from one major flaw: they frequently expect that all .rb files are loose on a filesystem somewhere, available to be File.open'ed. IRB is perhaps the worst offender; it loads its localization script by doing a *manual search* of the load path in $:. The only option I've come up with for this is to make RubyFile an "uberfile" that can be backed by URLs, Jar URLs, local filesystem paths ( java.io.File), and other tricker like "unevalling" a compiled script so it can be "read" again. At a minimum, supporting URLs, Jar URLs, and FS paths would be required. It's another one of those "big pieces" that neither of us have had time to tackle.

Whatever-in-a-Jar is the ultimate goal, however, especially for Rails-in-a-Jar deployed to a Java EE cluster. We'll get there somehow.

On 7/11/06, Nick Sieger <[EMAIL PROTECTED]> wrote:
Have you guys lent any thoughts to having a distro of JRuby that amounts to the entire thing in a .jar?  Will it "just work" to build an uber-jar that contains *.rb files as resources in the jar, that would make usage in embedding applications easier?

Also, it would be nice to get a copy of jruby.jar out onto www.ibiblio.org/maven (and maven2) so that other projects can have dependencies on the embeddable uber-jar.

For the last step we'll need to write a pom (I can do that, have experience w/ maven 2) and follow the steps outlined in [1].

Thoughts?

/Nick

[1] http://maven.apache.org/guides/mini/guide-maven-evangelism.html


-------------------------------------------------------------------------
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





--
Charles Oliver Nutter @ headius.blogspot.com
JRuby Developer @ www.jruby.org
Application Architect @ www.ventera.com
-------------------------------------------------------------------------
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

Reply via email to