I think it's valid to only specify the propertyname.
Compare its value with the result from its parent.
If they are the same, the rule should fail.
Thinking of the scm-section, I'd prefer to give a list of properties.
Every value here must be different compared to its parent or null (in this
case it'll be calculated, I'm not sure where this is done).
-Robert
On Thu, 15 Mar 2012 22:49:37 +0100, Mirko Friedenhagen
<[email protected]> wrote:
Hello,
I have implemented a new rule requirePropertyDiverges in a branch
(https://svn.codehaus.org/mojo/branches/mfriedenhagen/extra-enforcer-rules),
added unit tests, an integration test and a description
(http://huschteguzzel.de/hudson/job/extra-enforcer-rules/doclinks/1/requirePropertyDiverges.html).
This rule checks that a property in a project diverges from one given
in another project, e.g. the parent. We often have the case that
developers forget to override the project's url pointing to a
describing wiki page.
Any comments? Otherwise I would like to merge this back to trunk next
week.
Regards Mirko
--
http://illegalstateexception.blogspot.com/
https://github.com/mfriedenhagen/
https://bitbucket.org/mfriedenhagen/
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Using Opera's revolutionary email client: http://www.opera.com/mail/
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email