You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Mario Van Steenberghe (JIRA)" <ji...@codehaus.org> on 2005/10/27 12:07:11 UTC

[jira] Created: (MNG-1338) Check artifact language

Check artifact language
-----------------------

         Key: MNG-1338
         URL: http://jira.codehaus.org/browse/MNG-1338
     Project: Maven 2
        Type: Improvement
  Components: maven-clover-plugin  
    Versions: 2.0    
 Reporter: Mario Van Steenberghe
    Priority: Minor
     Fix For: 2.1


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


[jira] Updated: (MCLOVER-13) Check artifact language

Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
     [ 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


[jira] Closed: (MCLOVER-13) Check artifact language

Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCLOVER-13?page=all ]
     
Vincent Massol closed MCLOVER-13:
---------------------------------

     Assign To: Vincent Massol
    Resolution: Fixed

Applied thanks.

> 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
>     Assignee: Vincent Massol
>     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