最近收到一个ticket,用ant写个build.xml,用到condition,作笔记如下:
basic elements: istrue isfalse not and or xor available isset equals filesmatch
1、istrue isfalse:断言 真 假
Ant代码
is ture
is false
is ture
is false
2、逻辑运算
2.1、not 逻辑非
Ant代码
is ture
is false
is ture
is false
2.2、and 逻辑与
Ant代码
is ture
is false
is ture
is false
2.3、or 逻辑或 xor异或 (语法上与and类似)
3、available 是否可用
Ant代码
is ture
is false
is ture
is false
4、isset 指定属性是否存在
Ant代码
is ture
is false
is ture
is false
5、equals 是否相等
Ant代码
is ture
is false
is ture
is false
6、filesmatch 比较文件
阅读(3981) | 评论(0) | 转发(0) |