From 4ca7673c3f75d3195ec2497336593572c77befc0 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Thu, 24 Mar 2016 12:06:21 -0700 Subject: [PATCH] api-change profile now works with master + Adding script to collect all clirr:clirr into single html report --- jetty-runner/pom.xml | 12 +++ pom.xml | 41 ++++------ .../clirr-gen-master-index.output-foot.html | 3 + .../clirr-gen-master-index.output-head.html | 54 ++++++++++++ .../clirr-gen-master-index.output-html.xslt | 82 +++++++++++++++++++ scripts/clirr-gen-master-index.sh | 25 ++++++ 6 files changed, 192 insertions(+), 25 deletions(-) create mode 100644 scripts/clirr-gen-master-index.output-foot.html create mode 100644 scripts/clirr-gen-master-index.output-head.html create mode 100644 scripts/clirr-gen-master-index.output-html.xslt create mode 100755 scripts/clirr-gen-master-index.sh diff --git a/jetty-runner/pom.xml b/jetty-runner/pom.xml index 00caae19f2b..08d881c01c8 100644 --- a/jetty-runner/pom.xml +++ b/jetty-runner/pom.xml @@ -65,6 +65,18 @@ + + + + org.neo4j.build.plugins + clirr-maven-plugin + + + true + + + + diff --git a/pom.xml b/pom.xml index 2bf5c9e606f..aa958f30834 100644 --- a/pom.xml +++ b/pom.xml @@ -458,6 +458,22 @@ maven-pmd-plugin 3.4 + + org.neo4j.build.plugins + clirr-maven-plugin + 1.0.1 + + clirr-report.html + ${project.build.directory}/clirr-report.xml + true + true + false + true + info + 9.3.8.v20160314 + false + + @@ -833,31 +849,6 @@ aggregates/jetty-all-compact3 - - api-change - - - - org.codehaus.mojo - clirr-maven-plugin - 2.5 - - - compare-api - package - - clirr - - - - - info - 9.3.8.v20160314 - - - - - 8u00 diff --git a/scripts/clirr-gen-master-index.output-foot.html b/scripts/clirr-gen-master-index.output-foot.html new file mode 100644 index 00000000000..7ebf57007d3 --- /dev/null +++ b/scripts/clirr-gen-master-index.output-foot.html @@ -0,0 +1,3 @@ + + + diff --git a/scripts/clirr-gen-master-index.output-head.html b/scripts/clirr-gen-master-index.output-head.html new file mode 100644 index 00000000000..474fdba8c21 --- /dev/null +++ b/scripts/clirr-gen-master-index.output-head.html @@ -0,0 +1,54 @@ + + + CLIRR Master Index + + +

Master Clirr Index

+ diff --git a/scripts/clirr-gen-master-index.output-html.xslt b/scripts/clirr-gen-master-index.output-html.xslt new file mode 100644 index 00000000000..5d2f0631201 --- /dev/null +++ b/scripts/clirr-gen-master-index.output-html.xslt @@ -0,0 +1,82 @@ + + + + + + + + + + +
+
+ + ERROR + + + WARNING + + + INFO + +
+
+ + + + +
+
+ + type + + + + + + + +
+
    + +
+
+
+
+ + +
  • +
    + + + + + + error + + + warning + + + info + + + + +
    diff --git a/scripts/clirr-gen-master-index.sh b/scripts/clirr-gen-master-index.sh new file mode 100755 index 00000000000..46d86aa7e22 --- /dev/null +++ b/scripts/clirr-gen-master-index.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +SCRIPTSDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +if [ ! -d "target/clirr" ] ; then + mkdir -p "target/clirr" +fi + +MIDX="target/clirr/index.html" + +cat $SCRIPTSDIR/clirr-gen-master-index.output-head.html > $MIDX + +find . -type f -name "clirr-report.xml" -print0 | while IFS= read -r -d $'\0' line; do + shortname=$(echo $line | sed -e "s/^[^\/]\/*//;s/\/target.*//") + xsltproc --stringparam reportpath "$shortname" \ + $SCRIPTSDIR/clirr-gen-master-index.output-html.xslt \ + $line >> $MIDX + echo "$shortname" +done + +cat $SCRIPTSDIR/clirr-gen-master-index.output-foot.html >> $MIDX + +echo "" +echo "Master Clirr Index generated at at $MIDX" +