Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 14985 invoked from network); 24 Mar 2011 02:50:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Mar 2011 02:50:40 -0000 Received: (qmail 82388 invoked by uid 500); 24 Mar 2011 02:50:40 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 82311 invoked by uid 500); 24 Mar 2011 02:50:39 -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 82299 invoked by uid 99); 24 Mar 2011 02:50:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 02:50:38 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [74.125.82.48] (HELO mail-ww0-f48.google.com) (74.125.82.48) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Mar 2011 02:50:31 +0000 Received: by wwc33 with SMTP id 33so9777907wwc.17 for ; Wed, 23 Mar 2011 19:50:10 -0700 (PDT) Received: by 10.216.243.136 with SMTP id k8mr6556866wer.114.1300935010519; Wed, 23 Mar 2011 19:50:10 -0700 (PDT) Received: from mail-ww0-f48.google.com (mail-ww0-f48.google.com [74.125.82.48]) by mx.google.com with ESMTPS id h39sm3571970wes.29.2011.03.23.19.50.09 (version=SSLv3 cipher=OTHER); Wed, 23 Mar 2011 19:50:09 -0700 (PDT) Received: by wwc33 with SMTP id 33so9777890wwc.17 for ; Wed, 23 Mar 2011 19:50:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.11.205 with SMTP id 55mr184216wex.72.1300935009476; Wed, 23 Mar 2011 19:50:09 -0700 (PDT) Received: by 10.216.187.194 with HTTP; Wed, 23 Mar 2011 19:50:09 -0700 (PDT) Date: Thu, 24 Mar 2011 12:50:09 +1000 Message-ID: Subject: Pre test task From: Stu King To: users@buildr.apache.org Content-Type: multipart/alternative; boundary=0016364d2cbd1d9fe9049f3189ce X-Virus-Checked: Checked by ClamAV on apache.org --0016364d2cbd1d9fe9049f3189ce Content-Type: text/plain; charset=ISO-8859-1 How would I specify a task to run before / after running my tests for a project definition? I am using JUnit to run some component tests against a back end service. I have a Rake task I can call to start / stop the service. Say my definition looks like this: define "document" do package :jar task :start_service do #start some service end end How would I call :start_service before running my unit tests? I am an inexperienced ruby developer, so any direction is greatly appreciated. Cheers --0016364d2cbd1d9fe9049f3189ce--