How to determine the Ant version when using Ant inside Eclipse?

前端 未结 4 1743
闹比i
闹比i 2021-01-03 23:39

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

相关标签:
4条回答
  • 2021-01-04 00:20

    You can do so by typing the following command:

    ant -version

    0 讨论(0)
  • 2021-01-04 00:32

    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

    0 讨论(0)
  • 2021-01-04 00:36

    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

    0 讨论(0)
  • 2021-01-04 00:41

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

    0 讨论(0)
提交回复
热议问题