Automic VaultAutomic Vault

brew

Install ant with Homebrew, chocolatey, apt, dnf, Nix, pacman, scoop, zypper

Java build tool. Version 1.10.17 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install ant

local Homebrew formula metadata

Linux

Debian aptverified · 92%
sudo apt install ant

Debian stable package indexes · ant · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install ant

Fedora Rawhide package metadata · ant · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#ant

nixpkgs package indexes · pkgs/by-name/an/ant/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S ant

Arch Linux sync databases · ant · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install ant

openSUSE Tumbleweed package metadata · ant · source: download.opensuse.org

overview

Package summary

Java build tool

Commands and aliases

  • ant
  • antRun
  • antRun.pl
  • complete-ant-cmd.pl
  • runant.pl
  • runant.py

history

Project history and usage

Apache Ant is a Java library and command-line build tool that drives build processes described as XML targets and extension points. It became the classic Java-era alternative to Make: portable, task-oriented, and distributed as a packageable command named ant.

Project history

Apache's FAQ says Ant began inside the Tomcat code base when Tomcat was donated to the Apache Software Foundation. James Duncan Davidson, also the original Tomcat author, created it to build Tomcat and nothing else.

The same FAQ records the inflection point: other open source Java projects, especially Jakarta and older Java Apache projects, realized Ant solved problems they had with Makefiles. In January 2000 Ant moved to a separate CVS module, became independent of Tomcat, and became Apache Ant. The first stand-alone official release, Ant 1.1, followed on 19 July 2000.

Ant's manual preserves the core convention that made it sticky: running ant with no arguments looks for build.xml in the current directory and runs the default target. That simple file convention became part of Java project muscle memory before Maven and Gradle dominated newer builds.

Adoption history

Ant spread with Apache Jakarta and early Java open source because it replaced platform-specific Make behavior with Java tasks and XML build files. The FAQ explicitly says Ant became the build tool of choice for many projects after starting as Tomcat's build mechanism.

Package-manager adoption followed naturally. A Java developer could install ant from a distro, Homebrew, Chocolatey, Scoop, or Nix, then run the same build.xml across operating systems. The official manual also documents user extension loading through ${user.home}/.ant/lib and ANT_HOME/lib, which gave packaged Ant a stable core while letting developers add optional tasks and third-party jars outside the base package.

How it is used

The default command is simply ant, which runs build.xml in the current directory. Users can pass -buildfile or -f for another build file, -Dname=value for properties, target names for specific tasks, logging flags such as -quiet and -verbose, and -lib for extra task jars.

The Unix wrapper reads ~/.antrc before startup; the Windows wrapper runs %HOME%\antrc_pre.bat and %HOME%\antrc_post.bat. Those files are startup hooks, while build.xml is the project build definition.

Why package nerds care

Ant matters to package nerds because it is both build dependency and historical artifact. Many old Java source packages still expect ant, build.xml, and optional task jars, so distros keep it around even when newer Java projects prefer Maven or Gradle.

It also embodies an earlier packaging style: a stable launcher plus ANT_HOME, user-local .ant/lib extensions, and XML task definitions. Understanding Ant explains a large slice of legacy Java packaging, bootstrap builds, and why package recipes so often patch build.xml rather than invoking a generated build graph.

Timeline

  • 2000: Ant moves from Tomcat into a separate CVS module and becomes Apache Ant.
  • 2000: Tomcat 3.1 ships an early wider-audience Ant version later called Ant 0.3.1.
  • 2000: Ant 1.1 is released as the first official stand-alone product.
  • 2003: Ant 1.6 changes library loading around ANT_HOME/lib and ${user.home}/.ant/lib.
  • 2024: Apache announces the Ant 1.9.x release series end of life.
  • 2026: Apache Ant 1.10.17 is released for Java 8 and higher.

Related projects

  • Apache Ivy is an Ant-related dependency management project.
  • Apache AntUnit is a test framework for Ant build files.
  • Maven and Gradle are later Java build tools that displaced Ant for many new projects but still coexist with it in legacy and bootstrap builds.

security posture

Risk level: yellow

generalized runtime or code generation signal.

Risk classifier

yellow risk · medium confidence · runtime

Why

  • generalized runtime or code generation signal

Signals

  • text:build tool

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 1 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
./build.xml~/.antrc
Windows
build.xml in current directory%HOME%\antrc_pre.bat%HOME%\antrc_post.bat

executables

Installed executables

CommandKindExposureNote
antcliglobal executable
antRuncliglobal executable
antRun.plcliglobal executable
complete-ant-cmd.plcliglobal executable
runant.plcliglobal executable
runant.pycliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version1.10.17
manager updated2026-06-22
local dataok
upstreamnot checked
latest detectednot detected

https://ant.apache.org/

install metadata

Package metadata

Package keybrew:ant
Version1.10.17
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/ant
Homepagehttps://ant.apache.org/
Repositoryhttps://gitbox.apache.org/repos/asf?p=ant.git%3Ba%3Dsummary
Upstream docshttps://ant.apache.org/faq.html
LicenseApache-2.0
Source archivehttps://www.apache.org/dyn/closer.lua?path=ant/binaries/apache-ant-1.10.17-bin.tar.xz
Last updated2026-06-22T14:02:43-07:00
Pulseupdated
Dependenciesopenjdk
Bottleavailable (on all)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameant
Aliases
  • ant@1.10
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

ant 1.10.15-1

Java based build tool like make

http://ant.apache.org

sudo apt install ant
  • Section: java
  • Architecture: all
  • 2 dependencies
  • 5 optional deps
  • normalized package name match
  • Matched by: Ant
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ant from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

ant-doc 1.10.15-1

Java based build tool like make - API documentation and manual

http://ant.apache.org

sudo apt install ant-doc
  • Section: doc
  • Architecture: all
  • Source Package: ant
  • 1 optional deps
  • normalized package name match
  • Matched by: Ant
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ant-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

ant-optional 1.10.15-1

Java based build tool like make - optional libraries

http://ant.apache.org

sudo apt install ant-optional
  • Section: java
  • Architecture: all
  • Source Package: ant
  • 1 dependencies
  • 20 optional deps
  • normalized package name match
  • Matched by: Ant
Debian stable package indexes · deb.debian.org · Debian stable package indexes: ant-optional from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

ant

nix profile install nixpkgs#ant
  • normalized package name match
  • Matched by: Ant
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/an/ant/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

ant 1.10.14-1

Java based build tool like make

http://ant.apache.org

sudo apt install ant
  • Section: universe/java
  • Architecture: all
  • 2 dependencies
  • 5 optional deps
  • normalized package name match
  • Matched by: Ant
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ant from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

ant-doc 1.10.14-1

Java based build tool like make - API documentation and manual

http://ant.apache.org

sudo apt install ant-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: ant
  • 1 optional deps
  • normalized package name match
  • Matched by: Ant
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ant-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

ant-optional 1.10.14-1

Java based build tool like make - optional libraries

http://ant.apache.org

sudo apt install ant-optional
  • Section: universe/java
  • Architecture: all
  • Source Package: ant
  • 1 dependencies
  • 20 optional deps
  • normalized package name match
  • Matched by: Ant
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: ant-optional from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

ant 1.10.15-38.fc45

Java build tool

https://ant.apache.org/

sudo dnf install ant
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ant
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Ant
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ant from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ant-antlr 1.10.15-38.fc45

Optional antlr tasks for ant

https://ant.apache.org/

sudo dnf install ant-antlr
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ant
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Ant
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ant-antlr from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ant-apache-bcel 1.10.15-38.fc45

Optional apache bcel tasks for ant

https://ant.apache.org/

sudo dnf install ant-apache-bcel
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ant
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Ant
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ant-apache-bcel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ant-apache-bsf 1.10.15-38.fc45

Optional apache bsf tasks for ant

https://ant.apache.org/

sudo dnf install ant-apache-bsf
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ant
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Ant
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ant-apache-bsf from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ant-apache-oro 1.10.15-38.fc45

Optional apache oro tasks for ant

https://ant.apache.org/

sudo dnf install ant-apache-oro
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ant
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Ant
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ant-apache-oro from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ant-apache-regexp 1.10.15-38.fc45

Optional apache regexp tasks for ant

https://ant.apache.org/

sudo dnf install ant-apache-regexp
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ant
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Ant
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ant-apache-regexp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ant-apache-resolver 1.10.15-38.fc45

Optional apache resolver tasks for ant

https://ant.apache.org/

sudo dnf install ant-apache-resolver
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ant
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Ant
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ant-apache-resolver from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ant-apache-xalan2 1.10.15-38.fc45

Optional apache xalan2 tasks for ant

https://ant.apache.org/

sudo dnf install ant-apache-xalan2
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ant
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Ant
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ant-apache-xalan2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

ant-commons-logging 1.10.15-38.fc45

Optional commons logging tasks for ant

https://ant.apache.org/

sudo dnf install ant-commons-logging
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: ant
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Ant
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: ant-commons-logging from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment