我没有成功地搜索如何使ANT在控制台中打印System.out.println / System.out.print消息.消息根本不会出现.我没有找到任何这样做的简单方法.有没有?

谢谢

解决方法

junit任务printsummary属性有一个特殊的设置,其中包含OutAndErr:

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

dawei

【声明】:淮南站长网内容转载自互联网,其相关言论仅代表作者个人观点绝非权威,不代表本站立场。如您发现内容存在版权问题,请提交相关链接至邮箱:bqsm@foxmail.com,我们将及时予以处理。