javaant

Ant build.xml file doesn't exist error when using the -v flag


After the installation of Ant in windows 7, in cmd I typed ant -v to get the ant version but it says the following also:

Buildfile: build.xml does not exist! Build failed

What's the problem in the system. How can I rectify this issue?


Solution

  • You should use ant -version command instead.
    The -v option is equivalent of -verbose option.
    See Command-line Options Summary