System.out与Ant [英] System.out with Ant

查看:68
本文介绍了System.out与Ant的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在谷歌搜索,以弄清楚如何使ANT在控制台中显示System.out.println/System.out.print消息.消息根本不会出现.我还没有找到任何简单的方法来做到这一点.有吗?

I'm googling without success to figure out how to make ANT print System.out.println/System.out.print messages in the console. Messages simply don't appear. I haven't found any simple way of doing this. Is there any?

谢谢

推荐答案

任务printsummary属性具有特殊设置withOutAndErr

The junit task printsummary attribute has a special setting withOutAndErr that:

与上的相同,但还包括 写入的测试输出 System.out和System.err.

is the same as on but also includes the output of the test as written to System.out and System.err.

这篇关于System.out与Ant的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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