从 ant 脚本执行 java 类文件 [英] executing a java class file from ant script

查看:27
本文介绍了从 ant 脚本执行 java 类文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从 ant 脚本运行一个 java 类(实际上是一个测试用例).可以这样做吗?

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

推荐答案

在最基本的层面上,您可以使用 ant java 任务来做到这一点.

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

但你用 junit4 标记 - 你能不能不使用蚂蚁 junit 任务?

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

这篇关于从 ant 脚本执行 java 类文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆