@@ -168,9 +168,6 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref
168168
169169 private final ClasspathCache classpathCache = new ClasspathCache ();
170170
171- /**
172- * Note: use the legacy system property <em>disableXmlReport</em> set to {@code true} to disable the report.
173- */
174171 @ Parameter
175172 private SurefireStatelessReporter statelessTestsetReporter ;
176173
@@ -706,12 +703,12 @@ public abstract class AbstractSurefireMojo extends AbstractMojo implements Suref
706703 /**
707704 * Flag to disable the generation of report files in xml format.
708705 * 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.
710707 * @since 2.2
711708 */
712709 @ Deprecated // todo make readonly to handle system property
713710 @ Parameter (property = "disableXmlReport" , defaultValue = "false" )
714- private boolean disableXmlReport ;
711+ private Boolean disableXmlReport ;
715712
716713 /**
717714 * 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() {
20582055 }
20592056
20602057 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 ;
20642060
2065- xmlReporter .setDisable (isDisableXmlReport ()); // todo change to Boolean in the version 3.0.0-M6
2061+ if (isDisableXmlReport () != null ) {
2062+ xmlReporter .setDisable (isDisableXmlReport ());
2063+ }
20662064
20672065 SurefireConsoleOutputReporter outReporter =
20682066 consoleOutputReporter == null ? new SurefireConsoleOutputReporter () : consoleOutputReporter ;
@@ -3557,12 +3555,12 @@ public void setTrimStackTrace(boolean trimStackTrace) {
35573555 this .trimStackTrace = trimStackTrace ;
35583556 }
35593557
3560- public boolean isDisableXmlReport () {
3558+ public Boolean isDisableXmlReport () {
35613559 return disableXmlReport ;
35623560 }
35633561
35643562 @ SuppressWarnings ("UnusedDeclaration" )
3565- public void setDisableXmlReport (boolean disableXmlReport ) {
3563+ public void setDisableXmlReport (Boolean disableXmlReport ) {
35663564 this .disableXmlReport = disableXmlReport ;
35673565 }
35683566
0 commit comments