This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Ant, Maven and Other Build Tools and the fly likes ANT - Build failed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "ANT - Build failed" Watch "ANT - Build failed" New topic
Author

ANT - Build failed

Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
When I type the command "ant" from DOS, I get the following:

Buildfile: build.xml does not exist!
Build failed

How can I solve this issue?

Thanks.
Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
I realized that this is a sign that "Ant" is working. :-)
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

If you do not specific a build file name, Ant expects a build file name build.xml to exist in the current directory. If you have a build.xml file, "cd" to that directory first and then run Ant. If you do not have a build.xml file, you need to create one.

If you are new to Ant, might I recommend Ant in Action?


JBoss In Action
Manish Doomra
Greenhorn

Joined: Sep 05, 2008
Posts: 21
Originally posted by Abder-Rahman Ali:
When I type the command "ant" from DOS, I get the following:

Buildfile: build.xml does not exist!
Build failed

How can I solve this issue?

Thanks.


It seems that, you have made the build file with a different name(other than build.xml)
To solve this issue, use command "ant -f buildfile.xml" instead of "ant" to perform build process.


Manish Doomra
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

Manohar Devale,
Your post was moved to a new topic.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ANT - Build failed