Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ANT - Build failed

 
Abder-Rahman Ali
Ranch Hand
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I realized that this is a sign that "Ant" is working. :-)
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Manish Doomra
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manohar Devale,
Your post was moved to a new topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic