Forum: Ruby on Rails How to extend rake loading path ?

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.
Ba3a00606eb530dcab2c4a6a59bf366d?d=identicon&s=25 Alain Ravet (Guest)
on 2007-01-09 03:59
(Received via mailing list)
Can we tell +rake+ to honour/use the
   config.plugin_paths
specified in config/environment/development.rb?


Motivation/Example :
--------------------

In test.rb, I add :
   config.plugin_paths = ['vendor/plugins', 'vendor/plugins-test']

and in development.rb :
   config.plugin_paths = ['vendor/plugins',
'vendor/plugins-development']


That lets me sort my plugins based on their target environments, and do
some nice housekeeping :
=> my vendor directory looks like this
  vendor
     /plugins
         ...
     /plugins-test
         simply_bdd
         hpricot_test_helper
     /plugins-development
         query_analyzer
         routing_navigator


Problem:  +rake+ will just look in vendor/plugins, and ignore
vendor/plugins-development.
=> To launch tests with the rails_rcov I have to put
      rcov_rails
in plugins, instead of plugins-development.
This topic is locked and can not be replied to.