[ http://jira.codehaus.org/browse/MOJO-274?page=comments#action_58037 ]
Michael Böckling commented on MOJO-274: --------------------------------------- Thanks for the correction of the patch format, I was unaware of the guideline. The thing that it fixed "pom" projects is nice, returning "none" was a really good idea of the maven devs, I changed the patch a little for MJAR-27 back then since I didn't know that. > 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 > 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