Ant 构建中的可选任务与第三方任务应用
1. 可选任务的使用
在 Ant 构建中,有一些可选任务可以为构建过程提供额外的功能。
1.1 进度条展示任务
有一个任务可用于展示进度条,不过它对构建本身并没有实际的功能,且不适合用于无人值守的自动化构建过程。以下是一个示例构建文件:
<project name="splash" default="main">
<target name="init">
<splash imageurl="http://www.ehatchersolutions.com/logo.gif"
showduration="5000"/>
<sleep seconds="1"/>
<sleep seconds="1"/>
<sleep seconds="1"/>
<sleep seconds="1"/>
<sleep seconds="1"/>
<sleep seconds="1"/>
</target>
<target name="main" depends="init"/>
</project>
这里添加了 <sleep> 任务来展示构建过程中进度条的移动,但需要注意的是,底部的进度条并不表示剩余的工作量。
超级会员免费看
订阅专栏 解锁全文
1万+

被折叠的 条评论
为什么被折叠?



