[ http://jira.codehaus.org/browse/MCOBERTURA-6?page=all ]
     
Brett Porter closed MCOBERTURA-6:
---------------------------------

     Assign To: Brett Porter
    Resolution: Fixed

applied

> Cobertura doesn't check for project programming language
> --------------------------------------------------------
>
>          Key: MCOBERTURA-6
>          URL: http://jira.codehaus.org/browse/MCOBERTURA-6
>      Project: Maven 2.x Cobertura Plugin
>         Type: Bug

>  Environment: Maven 2.0.2
> Latest SVN checkout
>     Reporter: Michael Böckling
>     Assignee: Brett Porter
>     Priority: Critical
>      Fix For: 2.0
>  Attachments: MOJO-274-cobertura-maven-plugin-CORRECTION.patch, 
> MOJO-274-cobertura-maven-plugin.patch, patch.txt
>
>
> Problem:
> Cobertura doesn't check if the project ia a java-project.
> Solution:
> The javadoc plugin does it like this, I htink this is a good solution:
> ArtifactHandler artifactHandler = project.getArtifact().getArtifactHandler();
>         if ( !"java".equals( artifactHandler.getLanguage() ) )
>         {
>             getLog().info( "Not executing Javadoc as the project is not a 
> Java classpath-capable package" );
>             return;
>         }

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