• 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
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

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: 70223
282
  • 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: 40181
812
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?

 
What are you doing? You are supposed to be reading this tiny ad!
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic