[ http://jira.codehaus.org/browse/MCLOVER-13?page=all ]
Vincent Massol updated MCLOVER-13: ---------------------------------- Version: 2.0-alpha-1 Fix Version: 2.0 type: Improvement (was: Bug) > Check artifact language > ----------------------- > > Key: MCLOVER-13 > URL: http://jira.codehaus.org/browse/MCLOVER-13 > Project: Maven 2.x Clover Plugin > Type: Improvement > Versions: 2.0-alpha-1 > Reporter: Mario Van Steenberghe > Priority: Minor > Fix For: 2.0 > > > Would it be possible to add an artifact language verification before > executing your mojos ? This was done in the javadoc plug-in and seems to work > great. > In a multi-project build, this allows you to specify the reports for all > sub-projects at parent level. The generation of the clover report will be > excluded, since it is not defined as a 'java' artifact. > ------------------- > public void executeReport( Locale locale ) throws MavenReportException { > ArtifactHandler artifactHandler = > project.getArtifact().getArtifactHandler(); > if ( !"java".equals( artifactHandler.getLanguage() ) ) { > getLog().info( "Not executing Clover as the project is not a Java > classpath-capable package" ); > return; > } > .... > } > --------------------- > This could be included in both CloverReportMojo and CloverInstrumentMojo. > Regards, > Mario. -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]