Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Ant+JUnit  RSS feed

 
Vladimir Bezugliy
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have
- jakarta-ant-1.5.1
- junit3.8.1



But wen I try to run target "run-tests" then I get error:


Where is the problem?
 
Vladimir Bezugliy
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have found the problem.
I use Eclipse 3.0.
And I run ant from Eclipse.
But their junit.jar is not supports <junit> task.
How can I say to Eclipse that it should use junit.jar from my installations of junit3.8.1?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Change the runtime properties for Ant, via Preferences>Ant>Runtime.
 
Vladimir Bezugliy
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is the answer on this problem - Eclipse+Ant+JUnit
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!