release-engineering / pom-version-manipulator

Align versions in Maven POMs with those found in a Bill-of-Materials POM
Other
11 stars 9 forks source link

Property mapper should allow references to prior properties in the same mapping #53

Closed rnc closed 11 years ago

rnc commented 11 years ago

It would be useful to be able to do

        foo.version=6.0.0-Alpha1,
        version.foo=@foo.version@,
jdcasey commented 11 years ago

Not sure whether you wanted to leave the unresolved expression in place in the property value, or resolve the values you gave above (which I suppose would insert '6.0.0-Alpha1' anywhere foo.version OR version.foo is encountered). If you can take a look at the commit above and let me know what you think, that would help. I can revise as necessary, of course.

rnc commented 11 years ago

I think resolving the property automatically so '6.0.0-Alpha1' is inserted everywhere. This would mean we only have to have a single 'actual' version which has to be changed but could refer to everywhere with the different variations of property names. (Will look at the commit).