Ant: target
来源:互联网 发布:儿童编程教育连锁机构 编辑:程序博客网 时间:2024/06/06 12:42
if/unless 属性
<target name="dist" depends="local.dist" if="not.leaf"> <iterate target="dist"/> </target>
如果if值为一个属性,那么这个属性not.leaf为true、yes等"true-like"值时才运行这个target
1.8.0以后,if值可以不是属性,只要他为true就运行这个target,如:
<target name="-check-use-file" unless="file.exists"> <available property="file.exists" file="some-file"/></target><target name="use-file" depends="-check-use-file" if="${file.exists}"> <!-- do something requiring that file... --></target><target name="lots-of-stuff" depends="use-file,other-unconditional-stuff"/>
可运行 ant -Dfile.exists=false lots-of-stuff 来只运行other-unconditional-stuff 而避免运行 use-file
对于unless,和if相反,值为false时才运行target
- Ant: target
- [Ant]Tomcat control target
- [Ant]scp target
- Ant之Target
- Ant之Target 和Properity:
- ant的jar打包的target
- 关联target在ant配置文件中的应用
- ant之<target/>标签(1)
- 将Ant脚本中的Target单独写在其它xml中
- 使用Grand生成ANT的Target依赖关系图
- Ant build.xml中应该只包含一个target标签
- Ant编译问题一:The project either has no target set or the target is invalid
- target
- Target
- @Target:
- Target
- target
- Target
- Android SystemProperties和Settings.System介绍
- 贪吃蛇核心C代码
- zen cart在首页指定新进产品显示某个分类下面的产品
- sicily 1752.选择
- 全局变量,全局静态变量,局部变量,静态局部变量
- Ant: target
- 成为Android高手必须掌握的28大项内容和10个建议
- unix下的几个准则
- 迭代器和迭代器适配器---《C++标准程序库》读书笔记
- 通用工程前缀
- android应用程序(一) 短信收发
- hdu-1284-钱币兑换问题
- 吃糖果 hdu 1205 数论中思维问题 鸽巢原理
- 修改oracle RAC public hostname ,ip