Issue Type: Bug Bug
Affects Versions: extra-enforcer-rules-1.0-alpha-5
Assignee: Unassigned
Components: extra-enforcer-rules
Created: 16/May/13 2:12 AM
Description:

The requirePropertyDiverges rule fails to find the defining parent (IllegalStateException) if the configuration elements are not in the expected order.

This works:

            <requirePropertyDiverges>
              <property>project.url</property>
              <regex>http://company/company-parent-pom/.*</regex>
            </requirePropertyDiverges>

This does not:

            
            <requirePropertyDiverges>
              <regex>http://company/company-parent-pom/.*</regex>
              <property>project.url</property>
            </requirePropertyDiverges>

I think that both should be valid configurations.

The reason for the failure is the way configurations are compared in findDefiningParent. Perhaps it would be better to compare individual element values instead of Xpp3Dom fragments. I could prepare a patch for this if you are interested.

Project: Mojo
Priority: Minor Minor
Reporter: Michael Koch
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
--------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

Reply via email to