Cobertura doesn't check for project programming language
--------------------------------------------------------

         Key: MOJO-274
         URL: http://jira.codehaus.org/browse/MOJO-274
     Project: Mojo
        Type: Bug

  Components: cobertura  
 Environment: Maven 2.0.2
Latest SVN checkout
    Reporter: Michael Böckling
    Priority: Critical


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