I just thought of this:

<target name="one" depends="internal,my-external"/>

<target name="internals"/>

<target name="my-externals" depends="internals">
    <antcall="externals"
        inheritall="true"
        inheritrefs="true"/>
</target>

The "inheritall" allows the called target to inherit all properties
set. This is suppose to be the default. The "inheritrefs" allows for
all references to be inherited too. This is false by default.

--
David Weintraub
[EMAIL PROTECTED]



On Mon, Aug 18, 2008 at 5:09 PM, cowwoc <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> Give:
>
> <target name="one" depends="internal, external"/>
>
> how do I guarantee that "internal" gets executed before "external" if
> "external" is declared by some 3rd-party script I have no control over (that
> is, I can't add depends="internal" to "external").
>
> It should be noted that "internal" declares properties that "external" looks
> for, so AntCall won't work.
>
> Thanks,
> Gili
> --
> View this message in context: 
> http://www.nabble.com/Enforcing-%22depends%22-order-for-3rd-party-targets--tp19040027p19040027.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to