Hi on the Treewalker class I found this method. my guess is that your
configuration is not correct

  /**
    * Instantiates, configures and registers a Check that is specified
    * in the provided configuration.
    * [EMAIL PROTECTED]
    */
   public void setupChild(Configuration aChildConf)
       throws CheckstyleException
   {
       // TODO: improve the error handing
       final String name = aChildConf.getName();
       final Object module = mModuleFactory.createModule(name);
       if (!(module instanceof Check)) {
           throw new CheckstyleException(
               "TreeWalker is not allowed as a parent of " + name);
       }
       final Check c = (Check) module;
       c.contextualize(mChildContext);
       c.configure(aChildConf);
       c.init();

       registerCheck(c);
   }



On 10/10/06, Laetitia Juers <[EMAIL PROTECTED]> wrote:

Oops sorry, you're right ...
=========================================
I need to customize the Checkstyle plugin with some new rules. They are
written
in a package and defined in a configuration XML file.

I have follow the M2 recommendations
http://maven.apache.org/plugins/maven-checkstyle-plugin/customize.html.

When i use the mvn checkstyle:checkstyle, i have this M2 error :

[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] An error has occurred in Checkstyle report generation.

Embedded error: Failed during checkstyle configuration
TreeWalker is not allowed as a parent of CheckNJ2EE203
[INFO]
------------------------------------------------------------------------



Thanks for advices.



Selon Rolf Strijdhorst <[EMAIL PROTECTED]>:

> Sorry,
> but what error this is just a link,
> I think there went something wrong with your copy-past action
>



--

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to