Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 2402 invoked from network); 31 Aug 2009 08:54:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 31 Aug 2009 08:54:28 -0000 Received: (qmail 76153 invoked by uid 500); 31 Aug 2009 08:54:27 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 76084 invoked by uid 500); 31 Aug 2009 08:54:27 -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 76074 invoked by uid 99); 31 Aug 2009 08:54:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2009 08:54:27 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.206] (HELO mail-fx0-f206.google.com) (209.85.220.206) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 Aug 2009 08:54:19 +0000 Received: by fxm2 with SMTP id 2so1416252fxm.28 for ; Mon, 31 Aug 2009 01:53:57 -0700 (PDT) MIME-Version: 1.0 Received: by 10.239.145.136 with SMTP id s8mr462431hba.46.1251708836982; Mon, 31 Aug 2009 01:53:56 -0700 (PDT) Date: Mon, 31 Aug 2009 10:53:56 +0200 Message-ID: <7c55bf80908310153k69b44666qc7c041400fb05c3f@mail.gmail.com> Subject: s unless/if: strangeness in default behaviour (imho) (ant 1.6.5) From: Francis GALIEGUE To: Ant Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hello everyone, I have noticed something strange in the if=3D"" and unless=3D"" attributes of targets. Let's say that I have: If I: ant -Dp2=3D1 then, as expected, t1 triggers via t but not t2. However, if I: ant -Dp=3D1 I'd have expected none of t1 and t2 to execute, but both are executed! Which means that the dependencies of a target are executed before even any if=3D"" or unless=3D"" attributes are taken into account... This is rather counterintuitive to my eyes. Is this really the expected behaviour or is this a bug? --=20 Francis Galiegue ONE2TEAM Ing=C3=A9nieur syst=C3=A8me Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 fge@one2team.com 40 avenue Raymond Poincar=C3=A9 75116 Paris --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org