Allow logging feature dependency changes 84/56184/3
authorStephen Kitt <skitt@redhat.com>
Thu, 27 Apr 2017 16:18:57 +0000 (18:18 +0200)
committerStephen Kitt <skitt@redhat.com>
Fri, 28 Apr 2017 14:30:06 +0000 (16:30 +0200)
commit6c0e70892689ef9110d4f927a5390228ae6b481a
tree61c1f4d7ffbfc3453fae963bc66980fec8e0ee97
parentf4f881afa99ca9a211355fb4f20d5dc94410ef06
Allow logging feature dependency changes

This adds two properties controlling the Karaf feature generator’s
tracking features.

Setting checkDependencyChange to true enables checks and logs: when
features are generated, a simplified form  saved in src/main/history;
builds where this file is already present compare newly-generated
features against them, and log any failures. Any detected changes in
features are logged as a warning, with the detail of the changed
feature contents. It would be interesting to parse this in the builds
and send emails when changes are detected.

Setting failOnDependencyChange fails the build if a dependency change
is detected in the features.

This patch also enables both these flags in odlparent features where
it’s useful. This ensures that any changes to those features are
caught.

Change-Id: If9a1ebb2b218413f78a1bc28bfeb20d39b956675
Signed-off-by: Stephen Kitt <skitt@redhat.com>
22 files changed:
features4/odl-akka-all/src/main/history/dependencies.xml [new file with mode: 0644]
features4/odl-akka-clustering-2.4/pom.xml
features4/odl-akka-clustering-2.4/src/main/history/dependencies.xml [new file with mode: 0644]
features4/odl-akka-leveldb-0.7/pom.xml
features4/odl-akka-leveldb-0.7/src/main/history/dependencies.xml [new file with mode: 0644]
features4/odl-akka-persistence-2.4/pom.xml
features4/odl-akka-persistence-2.4/src/main/history/dependencies.xml [new file with mode: 0644]
features4/odl-akka-scala-2.11/pom.xml
features4/odl-akka-scala-2.11/src/main/history/dependencies.xml [new file with mode: 0644]
features4/odl-akka-system-2.4/pom.xml
features4/odl-akka-system-2.4/src/main/history/dependencies.xml [new file with mode: 0644]
features4/odl-guava-18/pom.xml
features4/odl-guava-18/src/main/history/dependencies.xml [new file with mode: 0644]
features4/odl-guava-21/pom.xml
features4/odl-guava-21/src/main/history/dependencies.xml [new file with mode: 0644]
features4/odl-lmax-3/pom.xml
features4/odl-lmax-3/src/main/history/dependencies.xml [new file with mode: 0644]
features4/odl-netty-4/pom.xml
features4/odl-netty-4/src/main/history/dependencies.xml [new file with mode: 0644]
features4/odl-triemap-0.2/pom.xml
features4/odl-triemap-0.2/src/main/history/dependencies.xml [new file with mode: 0644]
untested-single-feature-parent/pom.xml