[ http://jira.codehaus.org/browse/MCOBERTURA-30?page=all ]

Edwin Punzalan reassigned MCOBERTURA-30:
----------------------------------------

    Assign To: Edwin Punzalan

> Error when setting the "check" parameter for cobertura:check
> ------------------------------------------------------------
>
>          Key: MCOBERTURA-30
>          URL: http://jira.codehaus.org/browse/MCOBERTURA-30
>      Project: Maven 2.x Cobertura Plugin
>         Type: Bug

>     Reporter: Edwin Punzalan
>     Assignee: Edwin Punzalan

>
>
> accdg to the apt usage is: 
> {code:xml}
> <configuration>
>           <check branchrate="80" linerate="70" haltonerror="true"
>                  totalbranchrate="80" totallinerate="70">
>             <regex pattern="Circle*" 
>                    branchrate="80" linerate="90"/>
>           </check>
> </configuration>
> {code}
> which doesn't work bec there's no field named, regex in check.  So instead I 
> used:
> {code:xml}
>   <configuration>
>           <check branchrate="80" linerate="70" haltonerror="true"
>                  totalbranchrate="80" totallinerate="70">
>             <regexes>
>               <regex pattern="Circle*" 
>                      branchrate="80" linerate="90"/>
>             </regexes>
>           </check>
>   </configuration>
> {code}
> which makes the plugin run, but still, I get an NPE.  So I next I tried:
> {code:xml}
>   <configuration>
>           <check branchrate="80" linerate="70" haltonerror="true"
>                  totalbranchrate="80" totallinerate="70">
>             <regexes>
>               <regex>
>                 <pattern>Circle*</pattern>
>                 <branchrate>80</branchrate> 
>             </regexes>
>           </check>
>   </configuration>
> {code}
> which fails to initialize the plugin bec its looking for 
> org.codehaus.mojo.cobertura.configuration.Regex class.

-- 
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

Reply via email to