macOS
brew install antlocal Homebrew formula metadata
安装
brew install antlocal Homebrew formula metadata
sudo dnf install antFedora Rawhide package metadata · ant · 来源: dl.fedoraproject.org
nix profile install nixpkgs#antnixpkgs package indexes · pkgs/by-name/an/ant/package.nix · 来源: api.github.com
sudo pacman -S antArch Linux sync databases · ant · 来源: geo.mirror.pkgbuild.com
sudo zypper install antopenSUSE Tumbleweed package metadata · ant · 来源: download.opensuse.org
choco install antChocolatey community package catalog · ant · 来源: community.chocolatey.org
scoop install main/antScoop official bucket manifest trees · bucket/ant.json · 来源: api.github.com
概览
Java build tool
历史
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.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
./build.xml~/.antrcbuild.xml in current directory%HOME%\antrc_pre.bat%HOME%\antrc_post.bat可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
ant | cli | 全局可执行文件 | |
antRun | cli | 全局可执行文件 | |
antRun.pl | cli | 全局可执行文件 | |
complete-ant-cmd.pl | cli | 全局可执行文件 | |
runant.pl | cli | 全局可执行文件 | |
runant.py | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 依赖 | openjdk |
| Bottle | 可用 (于 all) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | ant |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
ant 1.10.15-1
Java based build tool like make
sudo apt install antant-doc 1.10.15-1
Java based build tool like make - API documentation and manual
sudo apt install ant-docant-optional 1.10.15-1
Java based build tool like make - optional libraries
sudo apt install ant-optionalant
nix profile install nixpkgs#antant 1.10.14-1
Java based build tool like make
sudo apt install antant-doc 1.10.14-1
Java based build tool like make - API documentation and manual
sudo apt install ant-docant-optional 1.10.14-1
Java based build tool like make - optional libraries
sudo apt install ant-optionalant 1.10.15-38.fc45
Java build tool
sudo dnf install antant-antlr 1.10.15-38.fc45
Optional antlr tasks for ant
sudo dnf install ant-antlrant-apache-bcel 1.10.15-38.fc45
Optional apache bcel tasks for ant
sudo dnf install ant-apache-bcelant-apache-bsf 1.10.15-38.fc45
Optional apache bsf tasks for ant
sudo dnf install ant-apache-bsfant-apache-oro 1.10.15-38.fc45
Optional apache oro tasks for ant
sudo dnf install ant-apache-oroant-apache-regexp 1.10.15-38.fc45
Optional apache regexp tasks for ant
sudo dnf install ant-apache-regexpant-apache-resolver 1.10.15-38.fc45
Optional apache resolver tasks for ant
sudo dnf install ant-apache-resolverant-apache-xalan2 1.10.15-38.fc45
Optional apache xalan2 tasks for ant
sudo dnf install ant-apache-xalan2ant-commons-logging 1.10.15-38.fc45
Optional commons logging tasks for ant
sudo dnf install ant-commons-logging来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.