I try too to migrate from the 1.X to the 2.X checkstyle pluggin.
I use the sample xml file. 
I define the maven.checkstyle.properties with my xml location. 
Then
- first you must define the DTD so I use this : 
   <?xml version="1.0" encoding="UTF-8"?>

   <!ELEMENT module (module|property)*>
   <!ATTLIST module name NMTOKEN #REQUIRED>

   <!ELEMENT property EMPTY>
   <!ATTLIST property
        name NMTOKEN #REQUIRED
        value CDATA #REQUIRED
  It is good for the sample.
- And define the DTD in my xml PI : 
   <!DOCTYPE module SYSTEM "style.dtd">

But I still have problem : when i try maven checkstyle:report there is the 
following error :

checkstyle:report:
    [echo] Using src/etc/style.xml for checkstyle ...

BUILD FAILED
File...... file:/C:/Documents and 
Settings/chalumeau/.maven/plugins/maven-checkstyle-plugin-2.0-SNAPSHOT/
Element... ant:checkstyle
Line...... 124
Column.... 65
Unable to create a Checker: unable to find 
C:\projet-maven\socle-technique\src\etc\style.xml
Total time:  6 seconds


>
> Check http://maven.apache.org/reference/plugins/checkstyle/properties.html for 
> the description of all available properties.
>
> Regards
>
> Am Mittwoch, 16. Juli 2003 13:33 schrieb Kristine Weissbarth:
>> hi,
>>
>> how can I integrate my own checkstyle.xml to be checked during the
>> checkstyle report. What do I have to do with my checks_project.xml?
>> I found out that the standart checks are situated in
>> maven-1.0-beta-9/plugins/maven-checkstyle-plugin-2.0-SNAPSHOT.jar but
>> how can I intergate my own check?
>>
>> Thanks.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to