转载:
http://www.cnblogs.com/javazhai/articles/253596.html
Javac
DescriptionCompiles a Java source tree.
The source and destination directory will be recursively scanned for Java source files to compile. Only Java files that have no corresponding .class file or where the class file is older than the .java file will be compiled.
Note: Ant uses only the names of the source and class files to find the classes that need a rebuild. It will not scan the source and therefore will have no knowledge about nested classes, classes that are named different from the source file, and so on. See the <depend> task for dependency checking based on other than just existence/modification times.
When the source files are part of a package, the directory structure of the source tree should follow the package hierarchy.
It is possible to refine the set of files that are being compiled. This can be done with the includes, includesfile, excludes, and excludesfile attributes. With the includes or includesfile attribute, you specify the files you want to have included. The exclude or excludesfile attribute is used to specify the files you want to have excluded. In both cases, the list of files can be specified by either the filename, relative to the directory(s) specified in the srcdir attribute or nested <src> element(s), or by using wildcard patterns. See the section on directory-based tasks, for information on how the inclusion/exclusion of files works, and how to write wildcard patterns.
It is possible to use different compilers. This can be specified by either setting the global build.compiler property, which will affect all <javac> tasks throughout the build, or by setting the compiler attribute, specific to the current <javac> task. Valid values for either the build.compiler property or the compiler ...全文阅读
http://www.cnblogs.com/javazhai/articles/253596.html
分享到:
相关推荐
《Ant开发指南:深入了解Ant构建工具的关键特性与应用》 一、引言 Apache Ant是一款开源的Java构建工具,主要用于自动化软件项目的构建过程。它通过XML格式的构建脚本(通常称为build.xml)来定义项目的构建规则,...
### Apache Ant 使用说明详解 #### 一、Apache Ant 概述 Apache Ant 是一款流行的 Java 构建工具,主要用于将源代码和其他输入文件转换为可执行文件。它由 James Duncan Davidson 创立,并最初作为 Tomcat 的一部分...
属性可以被赋值,也可以从命令行参数或属性文件中读取。例如: ```xml ``` `<classpath>`元素则用于定义类路径,这对于确保Ant能够找到编译和运行所需的类和库至关重要。你可以使用`<pathelement>`子元素添加...
本手册详细介绍了Ant的工作原理、基本概念、配置语法以及各种任务的使用方法,旨在帮助开发者高效地管理项目构建流程。 在Ant中,构建过程被定义在一个名为`build.xml`的XML文件中,这个文件包含了所有构建任务的...
《北京尚控科技有限公司Ant-6143说明书》是一份详细解读Ant-6143产品功能、操作方法及维护指南的重要文档。该说明书主要针对Ant-6143设备,由专业IT公司——北京尚控科技有限公司提供,旨在帮助用户充分理解和有效地...
"Ant参考教程.doc"提供了Ant内置任务的详细说明,每个任务的参数、用法和示例。这对于开发者理解和使用各种任务非常有帮助,例如`tstamp`任务用于插入当前日期和时间,`junit`任务用于运行JUnit测试等。 "Ant十五大...
Ant是Apache组织开发的一款强大的Java项目构建工具,它基于XML,允许开发者定义构建过程和依赖关系,便于自动化执行编译、测试、打包等任务。在Java开发中,Ant被广泛用于构建大型项目,确保代码的一致性和可重复性...
【描述】中的“Ant 在开源软件包和企业里面得到了广泛的应用”说明了Ant在实际开发中的重要性。作为开源项目,Ant具有跨平台的特性,可以在多种操作系统上运行,如Windows、Linux和Mac OS等。由于其灵活性和可扩展性...
Build failed”这样的提示,说明Ant已经配置成功。 **Ant命令行使用** Ant可以通过命令行参数进行多种操作: 1. `ant`:默认情况下,Ant会寻找当前目录下的`build.xml`文件并执行默认的目标(target)。 2. `ant -...
Ant以其XML格式的构建文件(build.xml)而闻名,这个文件详细描述了构建任务和依赖关系。在"java ant集成1.9.5版本"中,我们主要讨论的是如何将Apache Ant 1.9.5集成到Java开发环境中。 Apache Ant 1.9.5是该工具的...
"使用说明.txt"文件则详细介绍了如何将`ant-contrib`集成到Ant项目中,以及如何使用这些新引入的任务和宏。通常,这包括在构建脚本的`<project>`标签内添加`<taskdef>`元素来定义新的任务,以及在需要的地方插入对应...
【Jmeter+ant+Jenkins集成接口自动化测试详解】 接口自动化测试在现代软件开发中扮演着重要的角色,它能够提高测试效率,确保系统的稳定性和可靠性。JMeter是一款强大的开源性能测试工具,通常用于接口压力测试,但...
下面是对这个标签的详细说明: ```xml ${ddl.insertClassName.path}" classname="${ddl.insertClassName}" fork="YES" classpathref="compile.classpath"> ${ddl.insertClassName.path}/${arg.value}" /> `...
用户指南会介绍如何创建和运行构建文件,而任务参考则列出了所有可用任务的详细信息,包括它们的属性、参数和用法。API文档对于那些想要开发Ant插件或者扩展其功能的开发者来说尤其重要。 在压缩包中的"apache-ant-...
电气特性限定条件部分则详细列出了芯片在特定条件下的电气参数,包括电源电压、Powerdown电流、静态工作电流、振荡器频率、输出失调电压、动态效率等,并给出了在3.7V电源电压、25℃环境温度下的最小值、典型值和...
在引脚功能描述部分,可以看到ANT8108的各个引脚的详细定义,包括Shutdown控制管脚、内部参考电压管脚、防破音控制端、输入输出端口等。这些描述帮助用户理解如何在实际应用中正确连接和配置这些引脚。 例如,...
以下是关于这些知识点的详细说明: 1. **Eclipse IDE**:Eclipse是一款流行的开源Java开发环境,支持多种语言的开发。它提供了丰富的插件系统,可以扩展到支持各种任务,如项目管理、代码编辑、调试和自动化测试。 ...
- 利用属性和文件集进行参数化,提高代码复用。 - 使用条件语句来适应不同的构建环境。 - 为常见的构建任务编写宏定义,提高代码可读性。 通过这个Ant资料大全,你可以系统地学习Ant的基本概念、使用方法和高级...
这通常是开源软件的许可证文件,详细说明了Ant的许可协议,例如Apache License 2.0。遵守这些协议对于合法使用和分发Ant非常重要,因为它们规定了代码的使用、修改和分发的条款。 在实际开发中,`ant-launcher-...
basedir:project基目录的绝对路径,该属性在讲解project元素时有详细说明,不再赘述; ant.file:buildfile的绝对路径,如上面的各例子中,ant.file的值为E:"build.xml; ant.version:Ant的版本,在本文中,值为...