|
|
@@ -27,6 +27,7 @@ import javax.xml.stream.XMLStreamReader; |
|
|
|
import javax.xml.stream.XMLStreamWriter; |
|
|
|
|
|
|
|
import static org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.Constants.LD_XML_ATTR_CLASS_NAME; |
|
|
|
import static org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.Constants.LD_XML_ATTR_LISTENER_EXTENSION; |
|
|
|
import static org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.Constants.LD_XML_ATTR_LISTENER_RESULT_FILE; |
|
|
|
import static org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.Constants.LD_XML_ATTR_LISTENER_USE_LEGACY_REPORTING_NAME; |
|
|
|
import static org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.Constants.LD_XML_ATTR_OUTPUT_DIRECTORY; |
|
|
@@ -202,6 +203,9 @@ public class ListenerDefinition { |
|
|
|
if (this.resultFile != null) { |
|
|
|
writer.writeAttribute(LD_XML_ATTR_LISTENER_RESULT_FILE, this.resultFile); |
|
|
|
} |
|
|
|
if (this.extension != null) { |
|
|
|
writer.writeAttribute(LD_XML_ATTR_LISTENER_EXTENSION, this.extension); |
|
|
|
} |
|
|
|
writer.writeEndElement(); |
|
|
|
} |
|
|
|
|
|
|
@@ -226,6 +230,10 @@ public class ListenerDefinition { |
|
|
|
if (resultFile != null) { |
|
|
|
listenerDef.setResultFile(resultFile); |
|
|
|
} |
|
|
|
final String extension = reader.getAttributeValue(null, LD_XML_ATTR_LISTENER_EXTENSION); |
|
|
|
if (extension != null) { |
|
|
|
listenerDef.setExtension(extension); |
|
|
|
} |
|
|
|
final String useLegacyReportingName = reader.getAttributeValue(null, |
|
|
|
LD_XML_ATTR_LISTENER_USE_LEGACY_REPORTING_NAME); |
|
|
|
if (useLegacyReportingName != null) { |
|
|
|