From user-return-62235-apmail-ant-user-archive=ant.apache.org@ant.apache.org Tue Sep 18 01:23:25 2007 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 54250 invoked from network); 18 Sep 2007 01:23:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2007 01:23:24 -0000 Received: (qmail 43869 invoked by uid 500); 18 Sep 2007 01:23:13 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 43839 invoked by uid 500); 18 Sep 2007 01:23:13 -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 43828 invoked by uid 99); 18 Sep 2007 01:23:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Sep 2007 18:23:13 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of qazwart@gmail.com designates 209.85.128.187 as permitted sender) Received: from [209.85.128.187] (HELO fk-out-0910.google.com) (209.85.128.187) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Sep 2007 01:23:10 +0000 Received: by fk-out-0910.google.com with SMTP id 18so1882503fks for ; Mon, 17 Sep 2007 18:22:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Cer0Djm0JzZruNUka/1JgkaLzbBol4FG3SAdPj0FjG4=; b=eWHZ7F+BkOHdRsx68aM+klxG4fDQtMU918jpr5u1czgRyb54FaHqVMH+wy/UHse9iiO1mVYpZDCe58LoTjzCVFw8VLYl8CI3w5we68MDatojHzUGjxyqY9WKWUjx7xgO2q0XM3BTzCoBrnsaWNEELH2J1Sb0q0XqoQ8UgkFrVjM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b/9M8yXjXN46wKRc/rJA9vjU3hRZXByaSc5OmNGyKgFiGFYjdAPH0LN+0Hll631B5jMFvZzX6wvQJ3FARqrVlHFCSFwbKR/yvVA6iQMFOoH5TbXz8gBwU7JMib1hRc5UbTYQ/yLEB5+YkXGPvzPWeC4la1YkVNtiWGdvBjXh2d4= Received: by 10.82.146.14 with SMTP id t14mr6736231bud.1190078568645; Mon, 17 Sep 2007 18:22:48 -0700 (PDT) Received: by 10.82.157.12 with HTTP; Mon, 17 Sep 2007 18:22:48 -0700 (PDT) Message-ID: Date: Mon, 17 Sep 2007 21:22:48 -0400 From: "David Weintraub" To: "Ant Users List" Subject: Re: ANT / AntXtras quick question. In-Reply-To: <12747996.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <12747996.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Try the "isset" task of the task. It can be used with the task You could also use equals: [...] The task is part of antcontrib at http://ant-contrib.sourceforge.net/. Otherwise, look at the task. The task allows you to set a property if a particular condition is met and that includes both the and parameters. You can then combine this with and targets with conditions: Yes, in this particular instance, you can simply test the property directly in the tasks, but this does show you how you can set a property on the task, then use that as an if/else statement without using the antcontrib tasks. On 9/17/07, warhero wrote: > > I'm having trouble trying to figure out how to make sure a property is not > empty. > > So I have a properties file like so > myprop=something. > > And if the myprop is not empty (myprop=) then execute something. Does that > make sense? here's some kind of pseudocode. > > > > > > Just some pseudo code, but get's the point across.. > > Thanks in advance. > -- > View this message in context: http://www.nabble.com/ANT---AntXtras-quick-question.-tf4470947.html#a12747996 > Sent from the Ant - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > -- -- David Weintraub qazwart@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org