1. Add additional command line arguments for <javac> task:
<javac srcdir="${dist}/trsWeb" destdir="${dist}/build/trsWeb"
fork="true" classpath="${compile_classpath}" source="1.5" target="1.5"
nowarn="true">
<compilerarg value="-J-Duser.language=en"/>
</javac>
2. if...else...
<if>
<equals arg1="${hello}" arg2="true"/>
<then>
<echo >${hello} value is true</echo>
</then>
<elseif>
<equals arg1="${hello}" arg2="false"/>
<then>
<echo >${hello} value is false</echo>
</then>
</elseif>
<else>
<echo >${hello} value is unknowe</echo>
</else>
</if>
3. placeholder variables in build.xml
build.properties
--------------------
key=value
build.xml
--------------------
<project name="TestAntPlaceHolder" default="echo" basedir=".">
<property file="build.properties" /> <---- mandatory, no default property file biult-in.
<target name="echo">
<echo message="I'm ${key}..."/>
</target>
</project>
分享到:
相关推荐
apache ant安装包 apache ant安装包 apache ant安装包
apache ant使用例子, 一个可以运行的hello ant的myelipse工程实例。
Ant 是一个 Apache 基金会下的跨平台的基于 Java 语言开发的构件工具。在我们详细了解 Apache Ant 之前, 让我们来讲解为什么构建工具是需要最先了解的。
Apache_Ant_中文手册.doc apache ant 讲解。。。
Apache Ant 与Junit 对Java工程联合测试DEMO
Apache Ant,是一个将软件编译、测试、部署等步骤联系在一起加以自动化的一个工具,大多用于Java环境中的软件开发。 j2sdk1.5.0_03就是老版本的jdk.现在已经出到最新的7.0了。 本书为PDF格式 谢谢支持
apache-ant-1.6.5-bin 具体详细信息察看readme.txt
Imagine that you are working on a large project. The project is a Java project and consists of many .java files. It consists of classes that are dependent on other ...see http://jakarta.apache.org/ant/.
apache ant 1.10.13 版本apache ant 1.10.13 版本apache ant 1.10.13 版本apache ant 1.10.13 版本apache ant 1.10.13 版本apache ant 1.10.13 版本apache ant 1.10.13 版本apache ant 1.10.13 版本apache ant ...
Apache Ant 是一个基于 Java 的生成工具。据最初的创始人 James Duncan Davidson 介绍,这个工具的名称是 another neat tool(另一个整洁的工具) 的首字母缩写。 生成工具在软件开发中用来将源代码和其他输入文件...
apache ant 1.9.4 三个版本
Apache Ant 1.6.2.jar
Apache ANT的使用手册,即Apache官方Ant的Manual做成了CHM格式的文档,以备速查
NULL 博文链接:https://cuics-100.iteye.com/blog/909448
专业的 Apache Ant 使用指南(精装本)
Apache公司的Ant工具,它也有自己的API,这里将详细介绍
apache ant 1.8.4 的帮助手册, 英文版
基于Ant的Android SDK 1.5 开发环境搭建
jsch_for_apacheAnt;
apache-ant-1.8.2-src.zip apache ant源代码