System.err will always be redirected in the forked VM, there is no
setting to avoid that. But the output should be piped through to the
surefire-plugin and output from there instead, which should be identical
(but quite obviously isn't totally the same ATM.)

If you want this fixed you should probably do what I suggested in my
original response, file a bug report with a small sample project to
demonstrate your problem.

Kristian



to., 03.11.2011 kl. 08.36 -0700, skrev farrukh_najmi:
> This issue has become a productivity loss nightmare for me. Debugger shows
> that System.err is set to:
> 
> org.apache.maven.surefirereport.ConsoleOutputCapture$ForwardingPrintStream
> 
> Using useFile plugin config param with value false has no effect and
> System.err is still redirected.
> 
> What magic do I need to make sure that System.err does not get redirected?
> 
> Please help me out of this hole. Thanks.
> 
> 
> Kristian Rosenvold-4 wrote:
> > 
> > There were some changes in the capture/buffering algorithm for test 
> > output for surefire 2.9, which might be what you are seeing. If you are 
> > running your tests in parallel,
> > this is the intended behaviour, but I assume there might have been some 
> > change in the serial run-mode too, which is probably unintentional. This 
> > is not the
> > kind of stuff our (extensive) test-cases would spot, since the end 
> > behaviour is correct.
> > 
> > I think you should file an issue for this at 
> > http://jira.codehaus.org/browse/SUREFIRE, preferably attaching a small 
> > sample project that demonstrates the problem.
> > 
> > You can use this project as a template for creating an example project 
> > https://svn.apache.org/repos/asf/maven/surefire/trunk/surefire-integration-tests/src/test/resources/junit47-redirect-output*
> > 
> > 
> > Kristian
> > 
> > *
> > 
> 
> 
> --
> View this message in context: 
> http://maven.40175.n5.nabble.com/maven-surefire-plugin-redirecting-System-err-and-showing-delayed-output-from-junit-tests-tp4873335p4961403.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to