thank you

On 9/5/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
no you cant
The pattern for that is

<target name="x" depends="-x.if,-x.unless"/>
<target name="-x.check">
    <!-- set property x conditional -->
</target>
<target name="-x.if" if="x" depends="-x.check">
    ...
</target>
<target name="-x.unless" unless="x" depends="-x.check">
    ...
</target>


(the prepending '-' means, that you cant invoce that from the command line, 
because
'-' starts a property declaration)


Jan

>-----Ursprüngliche Nachricht-----
>Von: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Im Auftrag von Chris Chiasson
>Gesendet: Dienstag, 5. September 2006 08:01
>An: user@ant.apache.org
>Betreff: unique target names?
>
>Is it possible to have a target name be shared between two
>targets and use the if and unless attributes to control which
>one will execute? Do you have a documentation link? The ant
>DTD doesn't prevent it, but it seems like ant doesn't take
>DTDs very seriously anyway.
>
>--
>http://chris.chiasson.name/
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] For
>additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://chris.chiasson.name/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to