diff --git a/xml/Makefile b/xml/Makefile index 321b5c3..caa9766 100644 --- a/xml/Makefile +++ b/xml/Makefile @@ -8,6 +8,7 @@ MV = mv -f RM = rm -f UNZIP = unzip WGET = wget +XSLTPROC= xsltproc --nonet --xinclude all: $(TARGETS) @@ -35,4 +36,10 @@ clean: distclean: clean $(RM) -- $(TARGETS) -.PHONY: clean distclean +export-csv: sample-report/source/report.xml + @$(XSLTPROC) "xslt/findings2csv.xsl" "sample-report/source/report.xml" + +export-json: sample-report/source/report.xml + @$(XSLTPROC) "xslt/findings2json.xsl" "sample-report/source/report.xml" + +.PHONY: clean distclean export-csv export-json diff --git a/xml/xslt/findings2json.xsl b/xml/xslt/findings2json.xsl new file mode 100644 index 0000000..c1fd2a3 --- /dev/null +++ b/xml/xslt/findings2json.xsl @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + " + \" + + + \n + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + { + "projects": [ + "key": "<KEY>", + "issues": [ + ] + ] +} + + + + { + "status": "To Do", + "reporter": "ROS", + "externalId": "", + "issueType": "", + "priority": "", + "summary": "", + "description": "\n\n\nTechnical description:\n\n\n\n\nImpact:\n\n\n\n\nRecommendation:\n\n * \n" + }, + +