Bug 6003: Create config-filtering-parent 61/44561/5
authorVratko Polak <vrpolak@cisco.com>
Tue, 8 Nov 2016 15:46:45 +0000 (16:46 +0100)
committerVratko Polak <vrpolak@cisco.com>
Tue, 8 Nov 2016 15:46:45 +0000 (16:46 +0100)
commitd6e8fdcdbab2f72bd60c3f4f9c150af64748c28d
treee5ee906e46f54c8834f6461b894982c3299cf882
parent6d29b2d590148fe6b5645bc29532e4db73f8df45
Bug 6003: Create config-filtering-parent

The Bug requests an addition of resource filtering functionality to config-parent.
There are several issues with replacing config-parent functionality:
- It is a top-level non-karaf feature, subject to API freeze.
- maven-resource-plugin operates on directories (as opposed to files).
- Users (ODL or otherwise) may change config.file value.
+ Groovy script can be used to extract directory name...
- but it is not easy propagate computed values to sibling plugins.
  http://stackoverflow.com/questions/21867095/setting-properties-in-maven-with-gmaven
- Using two profiles in config-parent does not work easily
  http://stackoverflow.com/questions/1504850/maven-activate-child-profile-based-on-property
  (unless creation of temporary files in local filesystem is abused).

Therefore, a descendant parent pom is defined in this Change.
Presence of ${config.file} activates profiles in both config-parent and config-filtering-parent.

Small edits to config-plugin:
+ Add profile ID to distinguish filtering and non-filtering profiles.

Change-Id: Ia9ef770be232e04e4ba73f634a51b50665ee18ab
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
opendaylight/config/config-filtering-parent/pom.xml [new file with mode: 0644]
opendaylight/config/config-parent/pom.xml
opendaylight/config/pom.xml