[ http://jira.codehaus.org/browse/MCLOVER-13?page=all ]
Jason van Zyl moved MNG-1338 to MCLOVER-13:
-------------------------------------------
Version: (was: 2.0)
Fix Version: (was: 2.1)
type: Bug (was: Improvement)
Component: (was: maven-clover-plugin)
Workflow: jira (was: Maven)
Key: MCLOVER-13 (was: MNG-1338)
Project: Maven 2.x Clover Plugin (was: Maven 2)
> Check artifact language
> -----------------------
>
> Key: MCLOVER-13
> URL: http://jira.codehaus.org/browse/MCLOVER-13
> Project: Maven 2.x Clover Plugin
> Type: Bug
> Reporter: Mario Van Steenberghe
> Priority: Minor
>
>
> 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]