How to determine the Ant version when using Ant in

2019-02-11 22:52发布

How can I determine the version of Ant coming with Eclipse?

标签: java eclipse ant
4条回答
Melony?
2楼-- · 2019-02-11 23:01

You can do so by typing the following command:

ant -version

查看更多
祖国的老花朵
3楼-- · 2019-02-11 23:05

In the About Eclipse -> Eclipse.org button -> Eclipse.org Plug-in Details you will see Apache Ant plugin with version information

enter image description here

查看更多
乱世女痞
4楼-- · 2019-02-11 23:09

Inside your ant script the ant.version property holds the information, if you need programatically.

查看更多
祖国的老花朵
5楼-- · 2019-02-11 23:18

Although TigrisCs answer will give you the installed Ant bundle version, this version is not neccessarily the version you're executing your Ant files against. The dialog where you find the Ant version that is used to execute Ant files you'll find under Window->Preferences->Ant->Runtime

Ant runtime preferences

HTH Tom

查看更多
登录 后发表回答