« Return to Thread: Freezing gems that contain jars

Re: Freezing gems that contain jars

by Matt Fletcher-2 :: Rate this Message:

Reply to Author | View in Thread

Another issue to be aware of: if you're wrapping up your entire app into a jar, then loading classes from jars-within-jars isn't going to work. (Sorry I can't tell from the context of your post if you're doing this or not)

http://jira.codehaus.org/browse/JRUBY-3299

On Wed, Jun 24, 2009 at 1:27 AM, Matthew Kanwisher <Matt@...> wrote:
 jruby -S rake gems:unpack
No output, I noticed jruby-openssl is fine, so I assume its just a naming issue with hpricot. In my gems folder is called "hpricot-0.6.164-java". Does that mean  I should change my config?

  config.gem "hpricot", :version => '0.6.164'   * nothing happens, so I would assume this should work

  config.gem "hpricot-java", :version => '0.6.164'   *ERROR:  could not find gem hpricot-java locally or in a repository

  config.gem "hpricot", :version => '0.6.164-java' * Illformed requirement ["0.6.164-java"]

~Matt


On Wed, Jun 24, 2009 at 1:18 AM, Nick Sieger <nicksieger@...> wrote:
On Wed, Jun 24, 2009 at 12:13 AM, Matthew Kanwisher <Matt@...> wrote:
I was trying to unpack gems into my rails project and I noticed gems that contain jars like "hpriocot" and "jrubyopenssl" weren't unpacking into "vendor/gems". Is there some limitation on this or am I just doing something stupid ? Is it just a weird issue with hpricot, since the jdbc gems seem to unpack just fine.

I noticed in my original gem directory hpricot is called "hpricot-0.6.164-java", could that be effecting it also?


This is in my environment.rb
  config.gem "hpricot", :version => '0.6.164'   
  config.gem "memcache-client", :version => '1.7.2'
  config.gem "soap4r", :version => '1.5.8'
  config.gem "jruby-openssl", :version => '0.5'
  config.gem "rails", :version => '2.2.2'
  config.gem "activerecord-jdbcmysql-adapter", :version => '0.9.1'
  config.gem "activerecord-jdbc-adapter", :version => '0.9.1'
  config.gem "jdbc-mysql", :version => '5.0.4' 

Are there any messages printed out when you try to freeze the gems?

/Nick



 « Return to Thread: Freezing gems that contain jars