开发者

executing a java class file from ant script

开发者 https://www.devze.com 2023-01-21 11:03 出处:网络
I need to run a java class (actual开发者_开发问答ly a test case) from ant script. Is it possible to do so?At the most basic level you could use the ant java task to do this.

I need to run a java class (actual开发者_开发问答ly a test case) from ant script. Is it possible to do so?


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?


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消