I'm trying to get a legacy layout working in buildr 1.3.0. My sources are in src, tests in test. Here's the buildfile, inspired from a similar question on the mailing list back in February.
require 'buildr' VERSION_NUMBER = '1.0' repositories.remote << 'http://www.ibiblio.org/maven2/' define 'app' do project.version = VERSION_NUMBER compile.options.target = '1.5' legacy_layout = Layout.new legacy_layout[:source, :main, :java] = 'src' legacy_layout[:source, :test, :java] = 'test' define 'myproject', :layout => legacy_layout do puts "Path to: #{path_to(:source, :main, :java)}" puts "Compile target: #{compile.target}" puts "Compile sources: #{compile.sources}" package :jar end end The build fails with output: C:\Documents and Settings\neil\test>buildr (in C:/Documents and Settings/neil/test, development) Path to: C:/Documents and Settings/neil/test/myproject/src Compile target: C:/Documents and Settings/neil/test/myproject/target/main/classes Compile sources: Building app Testing app Testing app:myproject IOException: No file or directory with the name C:\Documents and Settings\neil\test\myproject\target\main\classes rake aborted! No file or directory with the name C:\Documents and Settings\neil\test\myproject\target\main\classes (See full trace by running task with --trace) Any help would be appreciated! Thanks Neil
