Apache Ant is a Java library and command-line tool that help building software.
Use the links below to download a source distribution of Ant from one of our mirrors. It is good practice to verify the integrity of the distribution files, especially if you are using one of our mirror sites. In order to do this you must use the signatures from our main distribution directory.
Ant is distributed as
tar.bz2 archives - the contents are the same. Please
note that the
tar.* archives contain file names longer
than 100 characters and have been created using GNU tar extensions.
Thus they must be untarred with a GNU compatible version of
You are currently using http://apache.osuosl.org/. If you encounter a problem with this mirror, please select another mirror. If all mirrors are failing, there are backup mirrors (at the end of the mirrors list) that should be available.
The Apache Ant team currently maintains two lines of development. The 1.9.x releases require Java5 at runtime and 1.10.x requires Java8 at runtime. Both lines are based off of Ant 1.9.7 and the 1.9.x releases are mostly bug fix releases while additional new features are developed for 1.10.x. We recommend using 1.10.x unless you are required to use versions of Java prior to Java8 during the build process.
Currently, Apache Ant 1.9.14 and 1.10.7 are the best available versions, see the release notes.
.ziparchive: apache-ant-1.9.14-src.zip [PGP] [SHA512]
.tar.gzarchive: apache-ant-1.9.14-src.tar.gz [PGP] [SHA512]
.tar.bz2archive: apache-ant-1.9.14-src.tar.bz2 [PGP] [SHA512]
.ziparchive: apache-ant-1.10.7-src.zip [PGP] [SHA512]
.tar.gzarchive: apache-ant-1.10.7-src.tar.gz [PGP] [SHA512]
.tar.bz2archive: apache-ant-1.10.7-src.tar.bz2 [PGP] [SHA512]
.tar.xzarchive: apache-ant-1.10.7-src.tar.xz [PGP] [SHA512]
It is essential that you verify the integrity of the downloaded files using the PGP signature or the SHA1 or SHA512 checksums. The checksums are not as strong indicators as the PGP signature.
The PGP signatures can be verified using PGP or GPG. First
download the KEYS
as well as the
asc signature file for the particular
distribution. Make sure you get these files from the main distribution
directory, rather than from a mirror. Then verify the signatures
% pgpk -a KEYS
% pgpv apache-ant-1.10.7-src.tar.gz.asc
% pgp -ka KEYS
% pgp apache-ant-1.10.7-src.tar.gz.asc
% gpg --import KEYS
% gpg --verify apache-ant-1.10.7-src.tar.gz.asc
Alternatively, you can verify the checksums on the files. Unix
sha512sum are included in many unix
*sum is also available as part of GNU
We highly recommend to verify the PGP signature, though.