No, only the <target> "task" supports it. As in: <target name="iffy-task" depends="something-else" unless="dont-do-it">
> -----Original Message----- > From: Justo Casablanca [mailto:jcasablanca@;cfl.rr.com] > Sent: Friday, October 18, 2002 6:29 AM > To: Ant Users List > Subject: Re: Condition Task Question > > > Are you sure that "every" target does ? I'm trying to use "unless" in the > <depend unless="my.property" .../> target, but I get this error: > > build.xml:110: The <depend> task doesn't support the "unless" attribute. > > ----- Original Message ----- > From: <[EMAIL PROTECTED]> > To: "Ant Users List" <[EMAIL PROTECTED]> > Sent: Friday, October 18, 2002 1:10 AM > Subject: Re: Condition Task Question > > > > > > Actually every ant <target> can have "if" or "unless" attribute. That > means > > that target will be executed only if property is (or is not) set. > > > > You can use it like this: > > > > <target .... if="blabla"> > > ... > > > > Primoz. > > > > > > > > > > "Justo > > Casablanca" To: "Ant Users List" > <[EMAIL PROTECTED]> > > <jcasablanca@c cc: > > fl.rr.com> Subject: Condition Task > Question > > > > 18.10.2002 > > 06:14 > > Please respond > > to "Ant Users > > List" > > > > > > > > > > > > > > Hi all, I really like having a Condition task and all, but all > it seems to > > allow you is > > the setting of a property to "true" if the condition is met. How do you > > actually _do_ > > something based on the true/false value of the property ? Thx in advance > > !!! > > > > > > > > > > -- > > To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> > For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org> > -- To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org> -- To unsubscribe, e-mail: <mailto:ant-user-unsubscribe@;jakarta.apache.org> For additional commands, e-mail: <mailto:ant-user-help@;jakarta.apache.org>
