antcall
来源:互联网 发布:新丰县网络问政 编辑:程序博客网 时间:2024/04/27 21:21
<project name="test-antcall" default="run-tests" basedir=".">
<!-- check os -->
<target name="os">
<!-- if os is unix, the value of is.unix is true -->
<condition property="is.unix">
<os family="unix"/>
</condition>
<!-- if os is windows, the value of is.windows is true -->
<condition property="is.windows">
<os family="windows"/>
</condition>
<echo>
os.name=${os.name}
os.arch=${os.arch}
os.version=${os.version}
is.unix=${is.unix}
is.windows=${is.windows}
</echo>
</target>
<!-- =================================
target: test-on-windows
================================= -->
<target name="test-on-windows" depends="os" if="is.windows"
description="testing on windows">
<echo>Running tests on windows</echo>
</target>
<!-- =================================
target: test-on-linux
================================= -->
<target name="test-on-linux" depends="os" if="is.linux"
description="testing on linux">
<echo>Running tests on linux</echo>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: run-tests
- - - - - - - - - - - - - - - - - -->
<target name="run-tests">
<antcall target="test-on-windows"/>
<antcall target="test-on-linux"/>
</target>
</project>
<!-- check os -->
<target name="os">
<!-- if os is unix, the value of is.unix is true -->
<condition property="is.unix">
<os family="unix"/>
</condition>
<!-- if os is windows, the value of is.windows is true -->
<condition property="is.windows">
<os family="windows"/>
</condition>
<echo>
os.name=${os.name}
os.arch=${os.arch}
os.version=${os.version}
is.unix=${is.unix}
is.windows=${is.windows}
</echo>
</target>
<!-- =================================
target: test-on-windows
================================= -->
<target name="test-on-windows" depends="os" if="is.windows"
description="testing on windows">
<echo>Running tests on windows</echo>
</target>
<!-- =================================
target: test-on-linux
================================= -->
<target name="test-on-linux" depends="os" if="is.linux"
description="testing on linux">
<echo>Running tests on linux</echo>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: run-tests
- - - - - - - - - - - - - - - - - -->
<target name="run-tests">
<antcall target="test-on-windows"/>
<antcall target="test-on-linux"/>
</target>
</project>
- antcall
- Antcall的用法
- antcall的 用法
- AntCall Task:执行过程中调用并执行其他target
- ant:入门演示(project,target,delete,mkdir,fileset,antcall,javac,classpath,jar……)
- ant中depends调用任务和antcall调用任务的区别
- List<T>转换为DataTable
- 正则表达式应用(日期正则表达式)
- android background设置颜色后就成textview了
- SQL用另外一个表的数据更新本表数据
- 项目end
- antcall
- 看板任务管理(转自http://www.infoq.com/cn/articles/hl-kanban-task-management)
- makefile的规则
- 怎样使用VSTS进行性能测试(转贴)
- 用HandlerThread创建一个启动线程
- 挑水的故事
- DataGridView里checkbox全选,反选的完美实现
- ant 软件包 *** 不存在
- Body onload Event