Apache Ant
维基百科,自由的百科全书
| 開發者 | Apache Software Foundation |
|---|---|
| 穩定版本 | 3.0.4/ 2012年1月20日 |
| 程式語言 | Java |
| 作業系統 | Cross-platform |
| 類型 | 組建自動化 |
| 許可協議 | Apache License 2.0 |
| 網站 | http://ant.apache.org |
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.
|
||||||||||||||
|
|||||||||||||||||||||||||||||||||||