Ant任务中有多个依赖 [英] Multiple depends in Ant task
本文介绍了Ant任务中有多个依赖的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如果我有三个目标,一个 all
,一个 compile
和一个 jsps
,我将如何使 all
取决于其他两个吗?
If I have three targets, one all
, one compile
and one jsps
, how would I make all
depend on the other two?
会是:
<target name="all" depends="compile,jsps">
...或者是:
<target name="all" depends="compile","jsps">
也许还有不同之处?
我尝试搜索蚂蚁脚本作为基础,但是我找不到具有多个依赖关系的蚂蚁脚本.
I tried searching for example ant scripts to base it off of, but I couldn't find one with multiple depends.
推荐答案
前者:
<target name="all" depends="compile,jsps">
蚂蚁手册中对此进行了记录.
这篇关于Ant任务中有多个依赖的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文