【问题标题】:Is there a way to output the ant version to the console if running ant build from Eclipse如果从 Eclipse 运行 ant build,有没有办法将 ant 版本输出到控制台 【发布时间】:2011-02-26 17:35:59 【问题描述】: 我想在使用 Ant 构建时将 ant 版本信息嵌入到控制台输出中。有办法吗? 【问题讨论】: 标签: java eclipse ant 【解决方案1】: 试试 <echo>${ant.version}</echo> 在你的构建文件中 【讨论】: