Please add support for handling source compatibility and binary compatibility 
separately
----------------------------------------------------------------------------------------

                 Key: MCLIRR-26
                 URL: http://jira.codehaus.org/browse/MCLIRR-26
             Project: Maven 2.x Clirr Plugin
          Issue Type: Wish
    Affects Versions: 2.2.2
            Reporter: Christian Schulte
            Priority: Critical


Currently the check goals fail a build whenever clirr reports an api difference 
with error severity independent of that error corresponding to a source 
compatibility issue or binary compatibility issue. It would be great if the 
mojo could handle both kinds of errors differently so that, for example, the 
check goal only fails a build for binary compatibility errors and not source 
compatibility errors. Something like this:

{code}
    /**
     * Whether to fail on errors.
     *
     * @parameter expression="${failOnError}" default-value="true"
     * @deprecated Replaced by {...@code failOnSourceCompatibilityError} and 
{...@code failOnBinaryCompatibilityError}.
     */
    private boolean failOnError;

    /**
     * Whether to fail on source compatibility errors.
     *
     * @parameter expression="${failOnSourceCompatibilityError}" 
default-value="false"
     */
    private boolean failOnSourceCompatibilityError;

    /**
     * Whether to fail on binary compatibility errors.
     *
     * @parameter expression="${failOnBinaryCompatibilityError}" 
default-value="true"
     */
    private boolean failOnBinaryCompatibilityError;

    /**
     * Whether to fail on warnings.
     *
     * @parameter expression="${failOnWarning}" default-value="false"
     * @deprecated Replaced by {...@code failOnSourceCompatibilityWarning} and 
{...@code failOnBinaryCompatibilityWarning}.
     */
    private boolean failOnWarning;

    /**
     * Whether to fail on source compatibility warnings.
     *
     * @parameter expression="${failOnSourceCompatibilityWarning}" 
default-value="false"
     */
    private boolean failOnSourceCompatibilityWarning;

    /**
     * Whether to fail on binary compatibility warnings.
     *
     * @parameter expression="${failOnBinaryCompatibilityWarning}" 
default-value="false"
     */
    private boolean failOnBinaryCompatibilityWarning;
{code}


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
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