Apache Ant
跳转到导航
跳转到搜索
| Apache Ant Logo | |
| 开发者 | Apache软件基金会 |
|---|---|
| 当前版本 | |
| 源代码库 |
|
| 编程语言 | Java |
| 引擎 | |
| 操作系统 | 跨平台 |
| 类型 | 组建自动化 |
| 许可协议 | Apache许可证 2.0 |
| 网站 | ant |
Apache Ant,是一个将软件编译、测试、部署等步骤联系在一起加以自动化的一个工具,大多用于Java环境中的软件开发。由Apache软件基金会所提供。默认情况下,它的buildfile(XML文件)名为build.xml。每一个buildfile含有一个<project>和至少一个默认的<target>,这些targets包含许多task elements。每一个task element有一个用来被参考的id,此id必须是唯一的。
build.xml 示例[编辑]
<?xml version="1.0" ?>
<project name="Hello World" default="execute">
<target name="init">
<mkdir dir="build/classes"/>
<mkdir dir="dist"/>
</target>
<target name="compile" depends="init">
<javac srcdir="src" destdir="build/classes"/>
</target>
<target name="compress" depends="compile">
<jar destfile="dist/HelloWorld.jar" basedir="build/classes" />
</target>
<target name="execute" depends="compile">
<java classname="HelloWorld" classpath="build/classes"/>
</target>
</project>
参见[编辑]
参考资料[编辑]
外部链接[编辑]
- Official website of Apache Ant(页面存档备份,存于互联网档案馆)
- Apache Ant wiki
- WinAnt - Windows installer for Apache Ant(页面存档备份,存于互联网档案馆)
- Introduction to Ant (slide show)
- Linguine Maps visualization library will automatically produce easy to read diagrams from Ant build files.
- antro - a profiler for Ant scripts(页面存档备份,存于互联网档案馆)
- Wiki Book on learning Apache Ant
- Ant tutorial(页面存档备份,存于互联网档案馆)
- Ant Automation(页面存档备份,存于互联网档案馆), a good handy example of automation with Ant.
- A simple Windows GUI for running Ant.
Module:Authority_control第183行Lua错误:attempt to index field 'wikibase' (a nil value)