Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 16320 invoked from network); 18 Feb 2003 15:23:07 -0000 Received: from dnsinet.rzf-nrw.de (193.109.238.66) by daedalus.apache.org with SMTP; 18 Feb 2003 15:23:07 -0000 Received: from z011104.bk.fin.local (z011104.bk.fin.local [193.109.238.140]) by dnsinet.rzf-nrw.de (8.12.3/8.12.3) with ESMTP id h1IFN5gN016434 for ; Tue, 18 Feb 2003 16:23:05 +0100 Received: by z011104.bk.fin.local with Internet Mail Service (5.5.2653.19) id <1NDZ9AZ6>; Tue, 18 Feb 2003 16:23:07 +0100 Message-ID: <879A5AD5DD0ED511891F0003473A9B5603CCC28D@Z011004> From: Jan.Materne@rzf.fin-nrw.de To: user@ant.apache.org Subject: AW: Conditional target execution based on prerequisite execution Date: Tue, 18 Feb 2003 16:23:06 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C2D761.A2E3C1B0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C2D761.A2E3C1B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable When you use the Ant framework will invoke A before B. Why setting a property? BTW the "onlyif" is There is a unless=3D"propertyname", too. Jan Mat=E8rne -----Urspr=FCngliche Nachricht----- Von: Timothy Wall [mailto:twall@oculustech.com] Gesendet am: Dienstag, 18. Februar 2003 16:04 An: user@ant.apache.org Betreff: Conditional target execution based on prerequisite execution How does one configure an ant build script such that target B is executed if and only if target A has been run? I realize that this *can* be accomplished by having target A set a property and B only run if that property is set, but given that this is such a fundamental notion in building large, complex projects, I'm surprised that there is not a more fundamental level of support for it in ant, particularly given its claims as a "make without the wrinkles". I'm finding ant to be more of "less flexible make using java, without some of the features". I didn't find any reference to such dependency tracking, but perhaps my terminology is incorrect. I would expect something like Where the idea is that some property "A-was-run" gets set automagically whenever A is actually run. If this feature is already in there somewhere, please point me to it. I'm assuming it's not, since the "depends" documentation explicitly states that it has absolutely no effect on whether or not a target gets run, and provides no links to any facility which might have such an effect. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ------_=_NextPart_001_01C2D761.A2E3C1B0--