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 5C13D973D for ; Thu, 23 May 2013 16:11:32 +0000 (UTC) Received: (qmail 51645 invoked by uid 500); 23 May 2013 16:11:32 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 51333 invoked by uid 500); 23 May 2013 16:11:30 -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 51198 invoked by uid 99); 23 May 2013 16:11:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 May 2013 16:11:28 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gcptbu-users@m.gmane.org designates 80.91.229.3 as permitted sender) Received: from [80.91.229.3] (HELO plane.gmane.org) (80.91.229.3) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 23 May 2013 16:10:50 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UfY5p-0004lM-V6 for users@buildr.apache.org; Thu, 23 May 2013 18:10:17 +0200 Received: from 94-192-77-177.zone6.bethere.co.uk ([94.192.77.177]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 May 2013 18:10:17 +0200 Received: from atg103 by 94-192-77-177.zone6.bethere.co.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 May 2013 18:10:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@buildr.apache.org From: Adam George Subject: Re: Correct Use of the 'tap' Method Date: Thu, 23 May 2013 16:10:00 +0000 (UTC) Lines: 31 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: sea.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 94.192.77.177 (Mozilla/5.0 (X11; Linux i686 on x86_64; rv:19.0) Gecko/20100101 Firefox/19.0) X-Virus-Checked: Checked by ClamAV on apache.org Antoine Toulme writes: > > This is more of a Rake question actually. Rake provides ways for you to > define tasks. > So when you type task(:compile) do |task| ... you are actually redefining > the compile task. That's why it's doing nothing. > > Rake provides a way to define task dependencies as tasks. Buildr builds on > this by adding the tap method which lets you add a dependent task directly > on the compile task. tap inserts the dependency as the first item in the > list, so if you tap twice, the second time will execute before the first > time. > > I hope this helps. > Hi Antoine, Thanks, that does make some sense, and it's useful to know about the double-tapping! However, I am now confused about how the compile task worked at all if I was redefining it. In example 1 (without .tap) the compilation was still working with the default behaviour (compiling from src/main/java). How is this possible if the task has been redefined to be something else by my code? Thanks, Adam