executing a java class file from ant script

陌路散爱 提交于 2019-12-11 07:33:49

问题


I need to run a java class (actually a test case) from ant script. Is it possible to do so?


回答1:


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?




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/3984781/executing-a-java-class-file-from-ant-script

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!