Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, apt, dnf, Nix, pacman, zypper, scoop 安装 ant

查看 ant 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install ant

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install ant

Debian stable package indexes · ant · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install ant

Fedora Rawhide package metadata · ant · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#ant

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

Arch Linux pacman已验证 · 92%
sudo pacman -S ant

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

openSUSE zypper已验证 · 92%
sudo zypper install ant

openSUSE Tumbleweed package metadata · ant · 来源: download.opensuse.org

概览

软件包摘要

Java build tool

命令和别名

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

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:build tool

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
antcli全局可执行文件
antRuncli全局可执行文件
antRun.plcli全局可执行文件
complete-ant-cmd.plcli全局可执行文件
runant.plcli全局可执行文件
runant.pycli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本1.10.17
管理器更新时间2026-06-22
本地数据OK
上游not checked
检测到的最新版本未检测到

https://ant.apache.org/

安装元数据

软件包元数据

软件包键brew:ant
版本1.10.17
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/ant
主页https://ant.apache.org/
仓库https://gitbox.apache.org/repos/asf?p=ant.git%3Ba%3Dsummary
上游文档https://ant.apache.org/faq.html
许可证Apache-2.0
源码归档https://www.apache.org/dyn/closer.lua?path=ant/binaries/apache-ant-1.10.17-bin.tar.xz
最后更新2026-06-22T14:02:43-07:00
Pulseupdated
依赖openjdk
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • 5 可选依赖
  • normalized package name match
  • 匹配方式: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 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 20 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 5 可选依赖
  • normalized package name match
  • 匹配方式: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 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 20 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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