• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error reading the project

 
Rami Sawas
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 799
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This has more to do with ANT than with Testing, so I will move it.
 
Rami Sawas
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 799
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure. Try downloading Ant 1.6.1; I believe it has JUnit built in.
-j-
 
Rami Sawas
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic