Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 90889 invoked from network); 29 Jun 2000 08:12:37 -0000 Received: from smtp01do.de.uu.net (192.76.144.61) by locus.apache.org with SMTP; 29 Jun 2000 08:12:37 -0000 Received: from sbodewig.bost.de ([195.127.75.69]) by smtp01do.de.uu.net (5.5.5/5.5.5) with ESMTP id KAA09318 for ; Thu, 29 Jun 2000 10:12:35 +0200 (MET DST) Received: (from bodewig@localhost) by sbodewig.bost.de (8.9.3/8.9.3) id KAA10288; Thu, 29 Jun 2000 10:12:30 +0200 X-Authentication-Warning: sbodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-dev@jakarta.apache.org Subject: Re: Conditionnal tasks References: <395A6BA6.B34A666A@rational.com> From: Stefan Bodewig Date: 29 Jun 2000 10:12:30 +0200 In-Reply-To: Sebastien PIERRE's message of "Wed, 28 Jun 2000 21:18:30 +0000" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Canyonlands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N >>>>> "SP" == Sebastien PIERRE writes: SP> I was wondering if there was any 'conditionnals' tasks in SP> Ant...if not here are the ones I'd find VERY useful : You are entering very dangerous ground here, be careful 8^). Things like you are proposing have been suggested and dismissed several times on this list. Ant should not become another programming language. Some of us have already been taken to their limits by the available task or the if attribute of targets. Most of the things you could accomplish with the conditionals could be solved differently. One way out for the remaining cases would be scripting. SP> This resembles to XSLT stylesheets, for those who know. Hmm, maybe you could use a real XSLT stylesheet together with a basic XML file to create a new build.xml tailored to the current conditions using the new Style task? I'm only partly serious here. Stefan