Isn't there a slight difference if the <target> node includes an "if" or "unless" attribute? With the dependencies as tasks (<depend>) I wouldn't expect them to be executed, whereas when declared within the "depends" attribute I would expect them to execute before the "if" and "unless" attributes are evaluated, because that's how Ant does it now, IIRC.
-- knut > Hi, > > I finally got around to making it possible to evaluate > dependencies inside a > target. So now all the following are equivelent > > <target name="x" depends="a,b,c"> > </target> > > <target name="x" depends="a"> > <depends target="b"/> > <depends target="c"/> > </target> > > <target name="x"> > <depends target="a"/> > <depends target="b"/> > <depends target="c"/> > </target> > > The advantage of this is that it allows you to declare > dependencies in between > other tasks like > <target name="x"> > <log message="Before depends evaluated!"/> > <depends target="c"/> > <log message="After depends evaluated!"/> > </target> > > -- > Cheers, > > Peter Donald > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
