File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes error reading the project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "error reading the project" Watch "error reading the project" New topic
Author

error reading the project

Rami Sawas
Ranch Hand

Joined: Jan 25, 2004
Posts: 41
Whenever I type in 'ant' it gives me this error:
"Buildfile: build.xml
BUILD FAILED
Error reading project file"
Can somebody kindly help.
Regards.
Jeff Langr
author
Ranch Hand

Joined: May 14, 2003
Posts: 762
That's what ant reads by default as the project file. It looks for build.xml in the current directory. You can use a different build file using -f. Type ant -help for a full list of options.


Books: Agile Java, Modern C++ Programming with TDD, Essential Java Style, Agile in a Flash. Contributor, Clean Code.
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15300
    
    6

This has more to do with ANT than with Testing, so I will move it.


GenRocket - Experts at Building Test Data
Rami Sawas
Ranch Hand

Joined: Jan 25, 2004
Posts: 41
Thank you.
I chose te file that I want, but gave me 'Junit not found in Ant's CLASSPATH'. It took me to the problem I was facing a while back and couldn't fix it until now.
I made sure junit.jar is in the CLASSPATH.
I copied junit.jar to Ant lib directory.
Can somebody kindly help.
Regards.
Jeff Langr
author
Ranch Hand

Joined: May 14, 2003
Posts: 762
I'm not sure. Try downloading Ant 1.6.1; I believe it has JUnit built in.
-j-
Rami Sawas
Ranch Hand

Joined: Jan 25, 2004
Posts: 41
I tried that as well. I've been told I don't have a <fail> in my build.xml file...I'm not sure if that's the reason.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error reading the project