Ant内置任务之sleep
2018-02-16 23:37
302 查看
一、概述
sleep是Ant内置任务,用于短时间的睡眠。在构建或部署过程中task之间需要间隔时很有用。睡眠时间是指定值的和。如果总睡眠时间是正数,可以给其中的属性设置负值。二、属性
hours:增加睡眠时间小时数。minutes:增加睡眠时间分钟数。
seconds:增加睡眠时间秒数。
milliseconds:增加睡眠时间毫秒数。
failonerror:发生错误时是否中止构建。
三、简单示例
<project> <sleep hours="1" minutes="-59" seconds="-58"/> </project>
相关文章推荐
- Ant内置任务之xslt/style
- ANT 的内置任务
- Ant内置任务之dirname
- Ant内置任务之ant
- Ant内置任务之import
- Ant内置任务之gunzip/bunzip2
- Ant内置任务之echo
- Ant内置任务之unjar/untar/unwar/unzip
- Ant内置任务之input
- Ant内置任务之xmlvalidate
- Ant内置任务之condition
- Ant内置任务之resourcecount
- Ant内置任务之loadresource
- Ant内置任务之scriptdef
- Ant内置任务之concat
- Ant内置任务之replace
- Ant内置任务之touch
- Ant内置任务之typedef
- Ant内置任务之presetdef
- Ant内置任务之echoproperties