Return-Path: Delivered-To: apmail-buildr-users-archive@www.apache.org Received: (qmail 46779 invoked from network); 23 Mar 2010 14:50:14 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 23 Mar 2010 14:50:14 -0000 Received: (qmail 85858 invoked by uid 500); 23 Mar 2010 14:50:14 -0000 Delivered-To: apmail-buildr-users-archive@buildr.apache.org Received: (qmail 85821 invoked by uid 500); 23 Mar 2010 14:50:14 -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 85813 invoked by uid 99); 23 Mar 2010 14:50:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 14:50:14 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=AWL,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of antoine.toulme@gmail.com designates 209.85.222.172 as permitted sender) Received: from [209.85.222.172] (HELO mail-pz0-f172.google.com) (209.85.222.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Mar 2010 14:50:08 +0000 Received: by pzk2 with SMTP id 2so259102pzk.19 for ; Tue, 23 Mar 2010 07:49:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:reply-to:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=AZm54M6zVynlzuQCt3MTtz9Mo8SakbdVNdwOT16DLec=; b=jzSSQCAkpKx5X/FO6eQ7w2HwUb/Bg5gTbsrzB6zISn/LzsP0hMIMV+uz5FSrXSTraM YbsC233xhkAxMuMsKjFwOM9Zeq74ozszSEG48sP8fdxU8YotySOcuci4jDDni+AJvdfN kaxKpym5CZqTG0hrAolIwQthpiUAuh3z+4QeU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:reply-to:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; b=RhBNrYSJjB1UG3wBrBfrWyqqNLTdEG+9PhP+CJeBFqHIs2hpx3uehhQO+PTnSDvIER 5wIkX65GZLoLg75VIHiO6nq8O4kEryjMVQdAlEt56URRYECd5ZQ320xGQ86VUi3ibDsn GgyqthDLzrtJIC1pt8ehyTpYPan9APHz4pp8U= MIME-Version: 1.0 Sender: antoine.toulme@gmail.com Reply-To: antoine@lunar-ocean.com Received: by 10.114.68.13 with SMTP id q13mr1226398waa.190.1269355788142; Tue, 23 Mar 2010 07:49:48 -0700 (PDT) In-Reply-To: <4BA8CF4E.2090503@orange-ftgroup.com> References: <4BA8CF4E.2090503@orange-ftgroup.com> From: Antoine Toulme Date: Tue, 23 Mar 2010 07:44:08 -0700 X-Google-Sender-Auth: cc85c3a4fb5a0632 Message-ID: Subject: Re: always running test for other project To: users@buildr.apache.org, jeanphilippe1.caruana@orange-ftgroup.com Content-Type: multipart/alternative; boundary=00504502e142d89f93048278ec09 --00504502e142d89f93048278ec09 Content-Type: text/plain; charset=ISO-8859-1 It's a bit delicate: we can't know for sure that nothing changed. You could have changed the version of a dependency in your Buildfile for example, or the tests require internet access. To avoid running tests, you can do: buildr package test=NO Thanks, Antoine On Tue, Mar 23, 2010 at 07:25, Jean-Philippe Caruana < jeanphilippe1.caruana@orange-ftgroup.com> wrote: > Hi, > > I don't understand how buildr works - I thought i did though. > I have a project made of several subprojects with dependencies between each > other. > > /myProject (that's where my buildfile is) > /---/commons-util > /---/commons-test > /---/artifactToBuild > > so my build file looks like something like this : > --------------------------------------------------------------------- > define 'myProject' do > > compile.using :target=>'1.5', :other=>['-encoding', 'ISO8859_1'] > :debug=>true > > desc 'utils for easy testing in the project' > define 'commons-test' do > compile.with COMMONS_TEST_DEPENDENCIES > test.resources > package :jar > end > > desc 'utils for the whole project' > define 'commons-util' do > compile.with COMMONS_UTIL_DEPENDENCIES > test.with project('commons-test'), JUNIT_3, MOCKRUNNER, DB_UNIT > package :jar > end > > desc 'i want to build it as fast as possible' > define 'artifactToBuild' do > compile.with project('commons-util'), > ARTIFACT_TO_BUILD_UTIL_DEPENDENCIES, COMMONS_UTIL_DEPENDENCIES > test.with project('commons-test'), JUNIT_3, DB_UNIT > test.exclude 'Abstract*' > package :jar > end > end > --------------------------------------------------------------------- > > every time i launch "buildr package" in artifactToBuild or "buildr test", > it launches all the tests in commons-test and commons-util even if nothing > changed in this projects. These can be pretty long. How can I do to change > this behaviour ? > > (Buildr 1.3.5 ) > > Thanks > > -- Jean-Philippe Caruana > ******************************** > Ce message et toutes les pieces jointes (ci-apres le "message") sont > confidentiels et etablis a l'attention exclusive de ses destinataires. > Toute utilisation ou diffusion non autorisee est interdite. > Tout message electronique est susceptible d'alteration. CVF decline > toute responsabilite au titre de ce message s'il a ete altere, deforme > ou falsifie. > Si vous n'etes pas destinataire de ce message, merci de le detruire > immediatement et d'avertir l'expediteur. > ********************************* > This message and any attachments (the "message") are confidential and > intended solely for the addressees. Any unauthorised use or > dissemination is prohibited. > Messages are susceptible to alteration. CVF shall not be liable for the > message if altered, changed or falsified. > If you are not the intended addressee of this message, please cancel it > immediately and inform the sender.. > ******************************** > --00504502e142d89f93048278ec09--