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

查看:155
本文介绍了从执行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天全站免登陆