antdepends

Multiple depends in Ant task


If I have three targets, one all, one compile and one jsps, how would I make all depend on the other two?

Would it be:

<target name="all" depends="compile,jsps">

...or would it be:

<target name="all" depends="compile","jsps">

Or maybe something even different?

I tried searching for example ant scripts to base it off of, but I couldn't find one with multiple depends.


Solution

  • The former:

    <target name="all" depends="compile,jsps">
    

    This is documented in the Ant Manual.