Re: [Ikvm-developers] Adding many resources with ikvmc
Brought to you by:
jfrijters
|
From: Jeroen F. <je...@su...> - 2009-04-29 09:31:18
|
Hi Aslak, I'm using JRuby 1.2 RC2 and I didn't run into that when compiling jruby.jar, but ikvmc does have a switch to include an entire subtree as resources (or classes): -recurse:/path/* One you have to look out for though, is that you specify the right directory, because to get the resource names to match the relative directory names have to be from the right directory depth. Thanks, Jeroen ________________________________ From: aslak hellesoy [asl...@gm...] Sent: Wednesday, April 29, 2009 11:12 AM To: Ikv...@li... Cc: Charles Oliver Nutter Subject: [Ikvm-developers] Adding many resources with ikvmc Hi there, After seeing Jeroen's excellent presentation on IKVM at the Roots conference in Bergen yesterday I decided to package JRuby for IKVM. In order to reduce JRubys' startup time I need to ikvmc jruby-complete.jar. That actually reduced startup time from 30 secs to about 2. Good! However, If I try to run ruby code that tries to load some of the Ruby standard library files I run into problems. jruby-complete.jar bundles the Ruby standard libraries as a lot of .rb files located under /META-INF/jruby.home and it seems that these files are not automatically included in the generated jruby-complete.exe. JRuby loads these with plain old getClass().getResource(). I know there is a -resource flag I can pass to ikvmc, but it doesn't seem to work with directories. It's unpractical to enumerate all the files to include - there are hundreds of them. Any advice on how to package up all the .rb resources inside the exe? Is there a switch I don't know about or would this require a change to ikvmc? If a change is needed, do you have any pointers on where I can start looking? Thanks a lot for a fantastic product! Cheers, Aslak |