how to find out which ant the eclipse is using

D

david wolf

how to know which ant (I installed multiple version of ants in my box)
my eclipse uses? (i configed eclipse a while ago, not sure which
version of ant I am using now).

Thanks,

David
 
R

Rhino

david wolf said:
how to know which ant (I installed multiple version of ants in my box)
my eclipse uses? (i configed eclipse a while ago, not sure which
version of ant I am using now).
Two ways:

1. Go to the plugins directory of your Eclipse installation, e.g.
e:\eclipse\plugins, and look for a folder whose name starts
"org.apache.ant". The last part of the name of that folder indicates the
version of Ant you are using, e.g. org.apache.ant_1.6.5 indicates that you
are using Ant 1.6.5.

2. Right-click on any build file, e.g. build.xml. Choose "Run as -> Ant
Build...". Choose the "Main" tab. Enter this in the "Arguments:" text
area: -version. Click the Apply button. Click the Run button. The build file
will run and display the Ant version, the current date, and the elapsed time
to run the build file. The actual targets and tasks in the build file will
not be executed. (Naturally, you should remove '-version' from the Arguments
portion of the Main tab after you have determined what version of Ant you
are running; otherwise, you will only ever get the Ant version when you run
that build file.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top