[PATCH] JMC-6052 : JSon rule result does not contain Rule ID

Miro Wengner miro.wengner at gmail.com
Tue Jun 26 20:09:37 UTC 2018


Hi All,
  I’ve fixed the bug JMC-6052.
and here is the diff.

Kind Regards,
Miro

PATCH:
diff --git a/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt b/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt
--- a/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt
+++ b/core/org.openjdk.jmc.flightrecorder.rules/src/main/resources/org/openjdk/jmc/flightrecorder/rules/report/json.xslt
@@ -132,6 +132,7 @@

 <xsl:template match="rule">
               {
+               "id": "<xsl:apply-templates select="id" />",
                "name": "<xsl:apply-templates select="name" />", <xsl:choose><xsl:when test="count(error)>0"><xsl:text>&#xa;               </xsl:text>"error": "<xsl:apply-templates select="error" />"</xsl:when><xsl:otherwise>
                "severity": "<xsl:apply-templates select="severity" />",
                "score": <xsl:apply-templates select="score" />,


More information about the jmc-dev mailing list