You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Vincent Massol (JIRA)" <ji...@codehaus.org> on 2005/12/20 17:20:35 UTC
[jira] Updated: (MCLOVER-13) Check artifact language
[ 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org