On Jan 25, 2012, at 5:21 AM, Mark - Mixtup wrote:

> -----------
> michel_layout = Layout.new
> michel_layout[:source, :main, :java] = 'src'
> michel_layout[:source, :test] = 'test'
> michel_layout[:target, :main] = 'bin'
> michel_layout[:target, :test] = 'bin'
> -----------
> 
> I expected that I would end up with a bunch of .class files in the bin
> directory but that doesn't happen as you can see below.

What does your buildfile look like for the Jamie's Robot project? The code 
cited above will instantiate a new layout object, but you still need to 
explicitly tell buildr when to use it, like:

define 'robot', :layout=>michel_layout do 
    … do some stuff ...
end

There are some other good examples in the docs at 
https://buildr.apache.org/extending.html#layouts.

--
Christopher Tiwald

Reliability Architect
Salsa Labs, Inc.

Reply via email to