Return-Path: X-Original-To: apmail-buildr-users-archive@www.apache.org Delivered-To: apmail-buildr-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C2F9D66EB for ; Thu, 21 Jul 2011 13:05:37 +0000 (UTC) Received: (qmail 47869 invoked by uid 500); 21 Jul 2011 13:05:37 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 47740 invoked by uid 500); 21 Jul 2011 13:05:36 -0000 Mailing-List: contact users-help@buildr.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@buildr.apache.org Delivered-To: mailing list users@buildr.apache.org Received: (qmail 47732 invoked by uid 99); 21 Jul 2011 13:05:36 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 13:05:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW X-Spam-Check-By: apache.org Received-SPF: unknown (nike.apache.org: error in processing during lookup of chris@edatasource.com) Received: from [209.85.215.182] (HELO mail-ey0-f182.google.com) (209.85.215.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Jul 2011 13:05:28 +0000 Received: by eyg7 with SMTP id 7so1849034eyg.13 for ; Thu, 21 Jul 2011 06:05:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.213.113.198 with SMTP id b6mr315125ebq.48.1311253507430; Thu, 21 Jul 2011 06:05:07 -0700 (PDT) Received: by 10.213.27.66 with HTTP; Thu, 21 Jul 2011 06:05:07 -0700 (PDT) In-Reply-To: References: Date: Thu, 21 Jul 2011 08:05:07 -0500 Message-ID: Subject: Re: How To Control Default Sub-Project From: Chris Adams To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=000e0cd1ea2a85597b04a893ff9a X-Virus-Checked: Checked by ClamAV on apache.org --000e0cd1ea2a85597b04a893ff9a Content-Type: text/plain; charset=ISO-8859-1 Hi Allen, I'm trying to mimic ant's default target capability with buildr. (and maybe I'm using the buildr's sub-projects incorrectly.) But, what I have is the following: desc 'EDS Analyst Build Project' define 'outside-project' do define 'sub-project1' do ... end define 'sub-project2' do ... end define 'webapp-1' do compile.with project(sub-project1), project(sub-project2) .... end define 'webapp-2' do compile.with project(sub-project2) ... end end Where the different webapps depend upon one-to-many sub-projects. I would like the no-arg buildr to invoke the 'build' task on webapp-1 since that is the most commonly built application we have. And then a buildr "package" task to invoke the 'package' task on the webapp-1. I may also be completely missing the project/sub-project paradigm that buildr uses to handle many top-level applications that all dependent upon a common subset of components. - Chris On Thu, Jul 21, 2011 at 12:43 AM, Allen Riddle wrote: > Chris, > > I believe a not arg call to Buildr will execute the default task, "build" > on > your main project. I see you have a couple more emails, so maybe you > describe it in those, but what specifically is your goal? Thanks > > On Wed, Jul 20, 2011 at 7:40 PM, Chris Adams > wrote: > > > Hi, > > > > I'm sure I'm just missing this in the documentation, but if I have a main > > buildfile in my root folder, with multiple subprojects in subfolders, how > > do > > I control what the main project actually does when 'buildr' (with no > > arguments) is called from the root directory? > > > > Thanks! > > > --000e0cd1ea2a85597b04a893ff9a--