带有 Ant 的 System.out [英] System.out with Ant

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

问题描述

我在谷歌上搜索没有成功弄清楚如何在控制台中使 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?

谢谢

推荐答案

junit 任务 printsummary 属性有一个特殊设置 withOutAndErr :

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

与 on 相同但还包括写入的测试输出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.

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

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