After the installation of my ant in my windows 7 . In cmd i typed ant -v it\'s given the ant version but it says the following also.
Buildf
may be you can specify where the buildfile is located and then invoke desired action.
Eg: ant -file {BuildfileLocation/build.xml} -v