How to extend rake loading path?


#1

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.