多个依赖于ant任务

如果我有三个目标,一个“全部”,一个“编译”和一个“jsps”,我将如何使“全部”取决于另外两个 可不可能是
<target name="all" depends="compile,jsps">
还是会的?
<target name="all" depends="compile","jsps">
或者甚至可能有什么不同? 我尝试搜索示例蚂蚁脚本以使其基础,但我找不到具有多个依赖的。     
已邀请:
前者:
<target name="all" depends="compile,jsps">
这在Ant手册中有记录。     
这是最重要的一个。 如果您想快速查看,请使用echo标签
<target name="compile"><echo>compile</echo></target>

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

<target name="all" depends="compile,jsps"></target>
如果您想要更灵活地订购任务,还可以查看antcall标签     
<target name="all" depends="compile,jsps">
这在Ant手册中有记录。     
另一种方法是使用antcall,如果要并行运行依赖目标,则更灵活。假设compile和jsps可以并行运行(即以任何顺序),所有目标都可以写成:
<target name="all" description="all target, parallel">
  <parallel threadCount="2">
    <antcall target="compile"/>
    <antcall target="jsps"/>
  </parallel>
</target>
请注意,如果目标不能并行运行,则最好使用带有depend属性的第一个flavor,因为只有在执行时才解析antcalls,并且如果被调用的目标不存在,则构建将仅在该点失败。     

要回复问题请先登录注册