Return-Path: Delivered-To: apmail-incubator-buildr-user-archive@locus.apache.org Received: (qmail 61345 invoked from network); 17 May 2008 15:28:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2008 15:28:41 -0000 Received: (qmail 87858 invoked by uid 500); 17 May 2008 15:28:43 -0000 Delivered-To: apmail-incubator-buildr-user-archive@incubator.apache.org Received: (qmail 87834 invoked by uid 500); 17 May 2008 15:28:43 -0000 Mailing-List: contact buildr-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: buildr-user@incubator.apache.org Delivered-To: mailing list buildr-user@incubator.apache.org Received: (qmail 87821 invoked by uid 99); 17 May 2008 15:28:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 May 2008 08:28:43 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of djspiewak@gmail.com designates 209.85.198.242 as permitted sender) Received: from [209.85.198.242] (HELO rv-out-0708.google.com) (209.85.198.242) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 May 2008 15:27:54 +0000 Received: by rv-out-0708.google.com with SMTP id k29so618443rvb.0 for ; Sat, 17 May 2008 08:28:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=hNlFpISniX46kRhaYSiC9rNQEgMzT2LieiIzlCFvmiA=; b=VXpop07qk3vgECBiI55slGAYTaAtmDzI6of4kX0SP377nFFU0GtJOnl9YoLbQMI7gGxh8H3Ibd1pWLSMC6+heB3/lPQ0GL5lvMoHK31tWlkfGFZLDfeBbonq9zJsqjSQp2DWYVR0LEEMsh2TE5XubZ/8Q1m49rYHJDDu0rlmLs8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=fzSZIa7zMVMpE5J8E4QN4o5kZDzmp+h3r7SvNt3K2kizMPIvZ0WjxJSzDIMVxs99M5F/76t/64UXvPFhyUE9ovoKydkOwf1ANYZsNtAe7Cl5rs/W44qV7hnnIocV8e19UMkdR8VFJGVUdpMUm76Z9M/qDpdh0HUkYtmLRQFICz4= Received: by 10.115.75.1 with SMTP id c1mr5175064wal.114.1211038089947; Sat, 17 May 2008 08:28:09 -0700 (PDT) Received: by 10.114.130.10 with HTTP; Sat, 17 May 2008 08:28:09 -0700 (PDT) Message-ID: <5c99d0330805170828v4f5e436dxc240346206747a19@mail.gmail.com> Date: Sat, 17 May 2008 10:28:09 -0500 From: "Daniel Spiewak" To: buildr-user@incubator.apache.org Subject: Re: Layouts In-Reply-To: <28ede29e0805170735x5c2608bese4d19c6d27b587cd@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3323_8079690.1211038089944" References: <28ede29e0805170735x5c2608bese4d19c6d27b587cd@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_3323_8079690.1211038089944 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Try adding this: legacy_layout[:target, :classes] = 'bin' # replace with whatever your output dir is Either that or just create the target/classes/ directory. Daniel On Sat, May 17, 2008 at 9:35 AM, Neil Curzon wrote: > 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 > ------=_Part_3323_8079690.1211038089944--