Ant 任务中的多个依赖项 [英] Multiple depends in Ant task

查看:23
本文介绍了Ant 任务中的多个依赖项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我有3个target,一个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">

或者甚至是不同的东西?

Or maybe something even different?

我尝试搜索示例 ant 脚本作为其基础,但我找不到具有多个依赖项的脚本.

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 手册中有记录.

这篇关于Ant 任务中的多个依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆