buildr-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Moore <>
Subject Re: Is there a way to delay building a sub project?
Date Thu, 29 Oct 2009 00:17:55 GMT

Well, I'm not sure that fixes my issue... on the continuous integration
environment I still need it to compile and run its JUnits after I do a lot
of other deployment related tasks... I did end up getting a task that
defines my project on the fly. A pretty serious hack I think, but now I can
build and run these integration tasks by adding a call to my buildr task
from the command our build plan uses.

New build plan command:

buildr clean build package myroot:deploy-to-remote-server
myroot:start-remote-app-server myroot:integration-tests -e

And approximately what I ended up doing for my "integration-tests" task:

  # integration-tests
  task 'integration-tests' do

    Buildr.application.switch_to_namespace "myroot".split(':') do

      Project.define('myroot:integration-tests', {}) do
          #define the project
          #compile.with ...etc.

  end #integration-tests

Any ideas on doing this better (as I'm not a ruby expert at all) would be



View this message in context:
Sent from the Apache Buildr - User mailing list archive at

View raw message