Tuesday, May 13, 2008

Cruisecontrol rb Task Load Order

This one took me about 45 minutes to figure out last night. My tree looks like this (partial):

- app
- config
- db
- doc
- lib
   - tasks
      - cruisetask.rake
- log
- public
- script
- test
- tmp
- vendor
   - plugins
      - myplugin
        - cruisetask.rake

The rake task in lib will trump the rake task in vendor. The rake task in vendor will trump the default behavior in cruisecontrol rb. They don't combine in any way, so if you're using a project-specific rake task you have to put it all there.

And in the end I got it working!

1 comment:

  1. In addition to this, setting project.rake_task in cruise_config.rb will override both of these.

    ReplyDelete