Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 97168 invoked from network); 31 Oct 2008 16:55:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2008 16:55:15 -0000 Received: (qmail 12717 invoked by uid 500); 31 Oct 2008 16:55:18 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 12682 invoked by uid 500); 31 Oct 2008 16:55:18 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 12671 invoked by uid 99); 31 Oct 2008 16:55:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2008 09:55:18 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sfloess@nc.rr.com designates 75.180.132.120 as permitted sender) Received: from [75.180.132.120] (HELO cdptpa-omtalb.mail.rr.com) (75.180.132.120) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 31 Oct 2008 16:54:03 +0000 Received: from flossware.homelinux.org ([66.57.231.67]) by cdptpa-omta03.mail.rr.com with ESMTP id <20081031165442.RYLW13610.cdptpa-omta03.mail.rr.com@flossware.homelinux.org>; Fri, 31 Oct 2008 16:54:42 +0000 Received: from adminserver.flossware.com (adminserver.flossware.com [192.168.168.2]) by flossware.homelinux.org (Postfix) with ESMTP id BE9B34C828D; Fri, 31 Oct 2008 12:54:41 -0400 (EDT) Date: Fri, 31 Oct 2008 12:54:41 -0400 (EDT) From: "Scot P. Floess" X-X-Sender: sfloess@adminserver.flossware.com To: Ant Users List , dave.alvarado@remanresource.com Subject: Re: Conditional depends clause In-Reply-To: <20081031165015.3178.qmail@s401.sureserver.com> Message-ID: References: <20081031165015.3178.qmail@s401.sureserver.com> User-Agent: Alpine 2.00 (LRH 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Checked: Checked by ClamAV on apache.org I think you'll need to define an unless attribute on each of the depends targets. So, for example: ... On Fri, 31 Oct 2008, dave.alvarado@remanresource.com wrote: > Hi, > > I have this in my build.xml file > > > > What I would like, however, is to only have one depends option depending on what a variable "env" is, which is passed to my script. So, for example, if env = "dev", I would like to execute only the "copyDevConf" option above. How do I configure this in ANT? > > Thanks, - Dave > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > Scot P. Floess 27 Lake Royale Louisburg, NC 27549 252-478-8087 (Home) 919-754-4592 (Work) Chief Architect JPlate http://sourceforge.net/projects/jplate Chief Architect JavaPIM http://sourceforge.net/projects/javapim Architect Keros http://sourceforge.net/projects/keros --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org