tags:

views:

43

answers:

3

hi,

I need to run a java class actually a test case from ant script, is it possible to do so??

+1  A: 

At the most basic level you could use the ant java task to do this.

But you tagged with junit4 - can you not use the ant junit task?

martin clayton
+1  A: 

To execute java class, you can use java task http://ant.apache.org/manual/Tasks/java.html

To execute junit test cases: http://ant.apache.org/manual/tasksoverview.html#testing

Marimuthu Madasamy
A: 

Try the java task. If you want to run tests, you might want to take a look at JUnit

iggymoran