You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Chris Tucker (JIRA)" <ji...@codehaus.org> on 2005/11/09 03:34:06 UTC

[jira] Updated: (MNG-1113) Plugin does not support using custom checkstyle XML config file

     [ http://jira.codehaus.org/browse/MNG-1113?page=all ]

Chris Tucker updated MNG-1113:
------------------------------

    Attachment: checkstyle-config-file.patch

I had the same problem and hacked a fix into the Mojo; a patch is attached against the current maven-checkstyle-plugin svn source.  The property configFile can be used to set a checkstyle configuration file from your POM.  It's working fine for me right now, though I make no claims about how correct it is in the grander scheme of things.

> Plugin does not support using custom checkstyle XML config file
> ---------------------------------------------------------------
>
>          Key: MNG-1113
>          URL: http://jira.codehaus.org/browse/MNG-1113
>      Project: Maven 2
>         Type: Bug
>   Components: maven-checkstyle-plugin
>     Versions: 2.0-beta-3
>     Reporter: Vincent Massol
>     Assignee: Edwin Punzalan
>  Attachments: MNG-1113-maven-checkstyle-plugin.patch, checkstyle-config-file.patch, recommended.txt
>
>
> The plugin source code says:
>     /**
>      * Specifies the location of the checkstyle properties that will be used to check the source.
>      *
>      * @parameter
>      */
>     private File propertiesFile;
> But in practice it's only loading *properties* and not the XML. The getConfigFile() method is not right and needs to be modified to take into account a custom checkstyle config file.

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org