You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@buildr.apache.org by Harish Krishnaswamy <ha...@gmail.com> on 2008/05/09 17:49:23 UTC

Sub-project dependency resolution

I am having trouble getting a sub-project to compile and it seems to be
because it can't see the dependencies. I am guessing its got to do with the
way my project is set up. So here's my set up...

-- my_buildr.rb
module MyProject
  include Extension

  def source_deps
    @deps = ...
    @deps
  end

  def build_my_project
    ...
    compile.with(source_deps)
    ...
  end
end

class Buildr::Project
  include MyProject
end

-- buildfile
require 'my_buildr'

define 'project-1' do
  ...
  build_my_project
  ...
  define 'sub-project-1' do
    ...
    build_my_project
    ...
  end
end

Now, when I build sub-project-1 I get compilation errors because it is not
using the source deps defined in MyProject. Anyone have any
ideas/work-arounds? Thanks.

-Harish