@@ -168,9 +168,6 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref
168
168
169
169
private final ClasspathCache classpathCache = new ClasspathCache ();
170
170
171
- /**
172
- * Note: use the legacy system property <em>disableXmlReport</em> set to {@code true} to disable the report.
173
- */
174
171
@ Parameter
175
172
private SurefireStatelessReporter statelessTestsetReporter ;
176
173
@@ -706,12 +703,12 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref
706
703
/**
707
704
* Flag to disable the generation of report files in xml format.
708
705
* Deprecated since 3.0.0-M4.
709
- * Instead use <em>disable</em> within {@code statelessTestsetReporter} since of 3.0.0-M6.
706
+ * @deprecated Instead use <em>disable</em> within {@code statelessTestsetReporter} since of 3.0.0-M6.
710
707
* @since 2.2
711
708
*/
712
709
@ Deprecated // todo make readonly to handle system property
713
710
@ Parameter (property = "disableXmlReport" , defaultValue = "false" )
714
- private boolean disableXmlReport ;
711
+ private Boolean disableXmlReport ;
715
712
716
713
/**
717
714
* By default, Surefire enables JVM assertions for the execution of your test cases. To disable the assertions, set
@@ -2058,11 +2055,12 @@ private Artifact getShadefireArtifact() {
2058
2055
}
2059
2056
2060
2057
private StartupReportConfiguration getStartupReportConfiguration (String configChecksum , boolean isForking ) {
2061
- SurefireStatelessReporter xmlReporter = statelessTestsetReporter == null
2062
- ? new SurefireStatelessReporter (/*todo call def. constr.*/ isDisableXmlReport (), "3.0.2" )
2063
- : statelessTestsetReporter ;
2058
+ SurefireStatelessReporter xmlReporter =
2059
+ statelessTestsetReporter == null ? new SurefireStatelessReporter () : statelessTestsetReporter ;
2064
2060
2065
- xmlReporter .setDisable (isDisableXmlReport ()); // todo change to Boolean in the version 3.0.0-M6
2061
+ if (isDisableXmlReport () != null ) {
2062
+ xmlReporter .setDisable (isDisableXmlReport ());
2063
+ }
2066
2064
2067
2065
SurefireConsoleOutputReporter outReporter =
2068
2066
consoleOutputReporter == null ? new SurefireConsoleOutputReporter () : consoleOutputReporter ;
@@ -3557,12 +3555,12 @@ public void setTrimStackTrace(boolean trimStackTrace) {
3557
3555
this .trimStackTrace = trimStackTrace ;
3558
3556
}
3559
3557
3560
- public boolean isDisableXmlReport () {
3558
+ public Boolean isDisableXmlReport () {
3561
3559
return disableXmlReport ;
3562
3560
}
3563
3561
3564
3562
@ SuppressWarnings ("UnusedDeclaration" )
3565
- public void setDisableXmlReport (boolean disableXmlReport ) {
3563
+ public void setDisableXmlReport (Boolean disableXmlReport ) {
3566
3564
this .disableXmlReport = disableXmlReport ;
3567
3565
}
3568
3566
0 commit comments