Same as original question, using Eclipse,开发者_开发技巧 how can i tell what version of ANT it is configured to use?
In Eclipse Helios:
- Open the Preferences dialog (
Window -> Preferences
) - Navigate to the
Ant -> Runtime
page - Expand the
Ant Home Entries
node on theClasspat
h tab
This shows the path used for Ant classpath, which also reveals ANT_HOME for Eclipse.
So by default in Helios you will have something like:
<ECLIPSE_ROOT>/plugins/org.apache.ant_1.7.1.v20100518-1145\lib\ant.jar
etc
On this same page, you can also change ANT_HOME to use a different version of Ant you have installed on your PC.
Create a build file and echo $ant.version
On Helios
- create an empty build.xml
- ctrl+space in the empty file and select the default build file template with 2 targets
- in the target called "default" add
<echo>${ant.version}</echo>
- save the file
- right click on the build.xml in the navigator
- select run as ant build
In Eclipse Helios (version 3.6.2) the version of the various plug-in modules such as ANT can be determined in the following manner.
Select the Help -> "About Eclipse SDK" menu option
Click on the "Installation Details" button
Click on the "Plug-ins" Tab
The "Plug-in Name" column is where ANT can be found the version is in the next column.
There will probably be multiple references to ANT in the "Plug-in Name" column including
Ant Build Tool Core
Ant Launching support
Ant UI
Apache Ant
I believe the "Apache Ant" is the most relevant entry and the others deal with how ant integrates with eclipse.
精彩评论