Apache Ant

From XennisWiki
Jump to: navigation, search

Apache Ant is a software tool for automating software build processes. It is similar to Make but is implemented using the Java language [...]. (Wikipedia)

Installation

Requirement

Installation (Windows 7)

  • Download and unzip Ant (Binary Distributions) from the official site
  • Add the following two system variables (Note: The paths must be adjusted accordingly!)
ANT_HOME=C:\Program Files\apache-ant-1.8.3
JAVA_HOME=C:\Program Files\Java\jdk1.7.0_03
%ANT_HOME%\bin

Test

ant -version

Commands

build.xml execution

ant

Show all targets

ant -p

Execute target doc in build.xml

ant doc

Tutorial

For a Java project see: Tutorial: Hello World with Apache Ant

See also

External links