【发布时间】:2010-12-07 11:49:21
【问题描述】:
我目前正在按照本教程学习SPRING:http://static.springsource.org/docs/Spring-MVC-step-by-step/part1.html
一切正常,但 Ant 输出总是显示“标准错误”和正常的日志记录内容,我认为这是错误的。
$ ant tests
Buildfile: build.xml
build:
buildtests:
[javac] Compiling 1 source file to /Users/Shared/Projects/springapp/war/WEB-INF/classes
tests:
[junit] Running springapp.web.HelloWorldControllerTests
[junit] Oct 30, 2007 11:31:43 PM springapp.web.HelloController handleRequest
[junit] INFO: Returning hello view
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.03 sec
[junit] Testsuite: springapp.web.HelloWorldControllerTests
[junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.03 sec
[junit] ------------- Standard Error -----------------
[junit] Oct 30, 2007 11:31:43 PM springapp.web.HelloController handleRequest
[junit] INFO: Returning hello view
[junit] ------------- ---------------- ---------------
BUILD SUCCESSFUL
Total time: 2 seconds
如何改变这种行为?日志输出不是错误,还是针对 Ant?感谢您的任何想法和澄清!
【问题讨论】: