Multiple depends in Ant task

corsiKa picture corsiKa · May 22, 2010 · Viewed 41.1k times · Source

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.

Answer

Brett Kail picture Brett Kail · May 22, 2010

The former:

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

This is documented in the Ant Manual.