]
Brett Meyer updated SRAMP-569:
------------------------------
Fix Version/s: 0.6.0
Create maven plugin to merge .properties files
----------------------------------------------
Key: SRAMP-569
URL:
https://issues.jboss.org/browse/SRAMP-569
Project: S-RAMP
Issue Type: Enhancement
Reporter: Brett Meyer
Assignee: David virgil naranjo
Fix For: 0.6.0
SRAMP-566 removes Fuse from s-ramp-installer. Instead, Fuse configuration is scripted
through s-ramp-karaf-commands. That project currently controls its own versions of
sramp.properties, sramp-ui.properties, etc. This was originally done since some of the
values are static and *specific* to Fuse.
However, several values remain unchanged when compared to the other platforms. It would
be better if s-ramp-karaf-commands/pom.xml was able to pull
../s-ramp-installer/**/*.properties and merge it with .properties still controlled in
s-ramp-karaf-commands. However, the s-ramp-karaf-commands version would contain *only*
the Fuse specific values.
Essentially, we're relying on s-ramp-installer's versions during buildtime, but
overriding with any necessary Fuse values in s-ramp-karaf-commands. A custom Maven plugin
to support this should be incredibly easy. Use Java's Properties, load the first
version, then load and override with the 2nd. See
http://beardedgeeks.googlecode.com/svn/docs/maven-merge-properties-plugin...
for inspiration.
Note that this is also needed for overlord-commons-karaf-commands (configure.dtd,
overlord.properties, etc.)