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 63667 invoked from network); 18 Oct 2000 19:21:21 -0000 Received: from ns.mccme.ru (195.133.68.22) by locus.apache.org with SMTP; 18 Oct 2000 19:21:21 -0000 Received: from mccme.ru (maxim@mccme.ru [195.178.198.7]) by ns.mccme.ru (8.8.5/8.8.5) with SMTP id WAA31962 for ; Wed, 18 Oct 2000 22:11:58 +0300 Date: Wed, 18 Oct 2000 23:26:28 +0400 (MSD) From: Max Nalsky To: ant-dev@jakarta.apache.org Subject: Re: Questions on Ant In-Reply-To: <20001018185033.9821.qmail@web110.yahoomail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N Well, What Ken suggests seems to be a kind of hack (even if it'd worked as he suppose). Am I right there's no "right" way to do what I need? Maybe it makes sense to modify Target.java so that a target could take a list of comma-separated properies names and check whether all of them are true? Max P.S. BTW, Ken says "if prop1 is true, xxx will be executed". Is it really so or "prop1" should simply be set regardless of its value? Thanks again, Max On Wed, 18 Oct 2000, Diane Holt wrote: > Ken, > > I don't think that will work. The running of the depends target isn't > based on the conditional -- only the running of the target itself is. So > "yyy" is run regardless of whether "prop1" is set, and it ends up > amounting to only a test on "prop2" being set. > > Diane > > --- Ken Wood wrote: > > > > > > > > > > > > > > > > If prop1 is true, xxx will be executed. Since it > > depends on "yyy", "yyy" is 'fired up'. If "prop2" > > is true, then "yyy" is executed. > > > > Max Nalsky wrote: > > > > > > Hi! > > > > > > Sorry if I post questions that were already discussed here. > > > > > > I haven't heard of Ant a week ago, now I'm using it for all my > > projects > > > and I'm extremely happy with it! Thank all of you for developing it. > > > > > > Questions: > > > > > > 1) How can I defince a target that should be invoked only if TWO > > > properties are simultaneously set? Using > > > > > > > > > > > > seem does not work. Is anyone has got an advice on it? > > > ===== > (holtdl@yahoo.com) > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Messenger - Talk while you surf! It's FREE. > http://im.yahoo.com/ >