Charles Oliver Nutter
5/5/2007 4:52:00 AM
Richard Conroy wrote:
> Any resources on trimming the non-essentials? Considering that I *do*
> wish to use gems and such. Its one thing to trim out docs & non-essentials
> from the 1-click, but I would probably need to install local gems and
> stuff.
Gems are a bit tricky, since they want to be loose on the filesystem and
we don't (yet) have a way to fake Ruby's "File" class to work from
within a JAR file. You could get around it by installing the gem
contents directly, I suppose. We'll have a better answer here in the
future (post 1.0).
> Might be nice if there was a Rake task to do this all.
Yes, that would be very nice, and it's a good idea. In general though
you's currently have to trim it yourself. Of course the "complete" JAR
is just a zip file, so you could unpack, delete, repack and get the same
results. I've done this to trim it down to just have IRB included, which
lowers the total size to more like 1.6MB. With better compression
(pack200 for example) it could be even smaller.
>> java -jar jruby-complete.jar -e "puts 'hello'"
>
> Hmmm ... I am going to have to start messing with JRuby pretty hardcore -
> it would map well to some of the Camping I am doing now.
Last I'd heard, Camping works well in JRuby.
- Charlie