Package org.apache.maven.surefire.report
Class ReporterConfiguration
- java.lang.Object
-
- org.apache.maven.surefire.report.ReporterConfiguration
-
public class ReporterConfiguration extends java.lang.ObjectBits and pieces of reporting configuration that seem to be necessary on the provider side.
Todo: Consider moving these fields elsewhere, this concept does not smell too good
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.PrintStreamoriginalSystemOutprivate java.io.FilereportsDirectoryprivate booleantrimStackTraceA non-null Boolean value
-
Constructor Summary
Constructors Constructor Description ReporterConfiguration(java.io.File reportsDirectory, boolean trimStackTrace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.PrintStreamgetOriginalSystemOut()The original system out belonging to the (possibly forked) surefire process.java.io.FilegetReportsDirectory()The directory where reports will be created, normally ${project.build.directory}/surefire-reportsbooleanisTrimStackTrace()Indicates if reporting should trim the stack traces.
-
-
-
Method Detail
-
getReportsDirectory
public java.io.File getReportsDirectory()
The directory where reports will be created, normally ${project.build.directory}/surefire-reports- Returns:
- A file pointing at the specified directory
-
isTrimStackTrace
public boolean isTrimStackTrace()
Indicates if reporting should trim the stack traces.- Returns:
- true if stacktraces should be trimmed in reporting
-
getOriginalSystemOut
public java.io.PrintStream getOriginalSystemOut()
The original system out belonging to the (possibly forked) surefire process. Note that users of Reporter/ReporterFactory should normally not be using this.- Returns:
- A printstream.
-
-