• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Unable to run the junit test using ANT

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to Java. I tried to run a junit test through ANT in command prompt mode.

When I have executed the 'ant run', i am getting the following error,

"BUILD FAILED
C:\Users\user\workspace\Ant\build.xml:115: G:\rep does not exist."

This is a part of my build.xml:





Please help me in resolving this problem.

Thank You
 
Marshal
Posts: 64658
225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

That looks too difficult a question fo rhe beginning forum, so i shall move it.
Please print the exact text of the instruction. Is there a space after 115:? If so, you may need to wrap the whole path in quote marks with \"...\"
 
Sandeep Palreddy
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes there is a space..

This is the whole error that I am getting


 
author & internet detective
Posts: 39343
755
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure why it is changing from G to C. But I do notice you are deleting G:\rep and I don't see where you recrate the directory. Cna you try adding a mkdir command after the delete?

 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!