Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 19693 invoked from network); 18 Jul 2007 03:19:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jul 2007 03:19:29 -0000 Received: (qmail 42091 invoked by uid 500); 18 Jul 2007 03:19:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 42049 invoked by uid 500); 18 Jul 2007 03:19:19 -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 42036 invoked by uid 99); 18 Jul 2007 03:19:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2007 20:19:19 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of maps.this.address@gmail.com designates 209.85.146.183 as permitted sender) Received: from [209.85.146.183] (HELO wa-out-1112.google.com) (209.85.146.183) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jul 2007 20:19:14 -0700 Received: by wa-out-1112.google.com with SMTP id k22so59475waf for ; Tue, 17 Jul 2007 20:18:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=cQNLMtu2r18MFSSZCMgVmGhMLS4wV2k307qW3qN7WBnXRJsLgt1eEKPKcGApYjZ6xtbunCJUJ31kvKzx4HECXIc64I38MkrOuUk9c0qBj5F7DrNp9MpefUTpnaIKptXLCTuEnMLidWq5PWfYinOoO6z9Fp1kofK+AUqkAw1fVd0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QSl1LYByw8tbVXF7LwqUjZFC9ZQg6y3/VM5NBDzXDKI7+j1jzbfvl/PcyTQViVIjXjZ8bmdPBGs07Sh4nGTGzBJmyJTYcuGtC5AoMpf/FY21NgArllWcP1vLogf9cTyzhqQSypN0Oy+gqDfvteCHF1xE9+0AxtAw69JlHNZtHBE= Received: by 10.115.54.1 with SMTP id g1mr1032828wak.1184728733690; Tue, 17 Jul 2007 20:18:53 -0700 (PDT) Received: by 10.114.169.9 with HTTP; Tue, 17 Jul 2007 20:18:53 -0700 (PDT) Message-ID: Date: Tue, 17 Jul 2007 23:18:53 -0400 From: "Evan J " To: user@ant.apache.org Subject: Simple if/else Condition MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi, I read the documents on Condition and Available tasks and from what I see, both tasks only set a certain property upon meeting the condition or otherwise. What I would like to accomplish is to actually perform a task if a condition met or else do something else. That is, if (condition) perform some task, i.e. echo message="condition met" else perform another task Is there such task available in Ant 1.7? --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org