user496949
user496949

Reputation: 86075

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

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

Upvotes: 24

Views: 56482

Answers (4)

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

Upvotes: 18

Antonio Juarez
Antonio Juarez

Reputation: 261

You can do so by typing the following command:

ant -version

Upvotes: 26

Tom Seidel
Tom Seidel

Reputation: 9535

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

Upvotes: 10

TigrisC
TigrisC

Reputation: 1360

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

Upvotes: 14

Related Questions