tags:

views:

440

answers:

3

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.

Thanks!

+2  A: 

It's the top one.

Just use the echo tag if you want to quickly see for yourself

<target name="compile"><echo>compile</echo></target>

<target name="jsps"><echo>jsps</echo></target>

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

You can also look at the antcall tag if you want more flexibility on ordering tasks

amir75
+3  A: 

The former:

<target name="all" depends="compile,jsps">
bkail
+1  A: 

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

This is documented in the Ant Manual.

Don Roby