Forum: JRuby JRuby 1.1.5 introduces unusual plugin dependencies in Rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Wes G. (Guest)
on 2008-12-19 09:06
(Received via mailing list)
Hopefully I will explain this correctly.

We have an application that we are running as an engine in Rails, which
means that all of the application code is really contained in a plugin.
Under JRuby 1.1.5, when we start up this app. with Mongrel, we see that
our custom plugin's install.rb file is somehow included in the
dependency tree that ActiveSupport is loading (ActiveSupport requires
each node and this is how the framework and the app. are loaded).  This
was a problem because the requiring of this install.rb file executes it,
and our install.rb really shouldn't be executed except when the plugin
is installed (which is normally the only time it's executed).

I moved to 1.1.6 and this behavior disappeared.  Not sure if this is a
known issue or not, but did want to mention it in case someone on the
list had some more insight into what was happening here.  I heard tell
that there were some Rails-engine specific changes made in JRuby 1.1.5
perhaps?

Thanks,
Wes

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
This topic is locked and can not be replied to.