Its is not entirely clear what problem is that you are facing.
ant -version prints the version of ANT in the PATH.
ant -v executes default target of build.xml in the current dir in
"verbose" mode. In this case if there is no build.xml in the current
directory you will see messages like
build.
I had my apache-ant-1.6.2 and completed setting varaibles
ANT_HOME
PATH
but when I run basic ant command like ant -version at CMD
getting messages like(copied from the CMD, no manipulation)
build.xml does not exist!
Build failed
Clue: I logged off and logged in as a different user(with my f