You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Brett Porter (JIRA)" <ji...@codehaus.org> on 2007/01/22 00:35:17 UTC

[jira] Moved: (SUREFIRE-250) surefire-report-maven-plugin: don't add report for non java projects

     [ http://jira.codehaus.org/browse/SUREFIRE-250?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter moved MSUREFIREREP-9 to SUREFIRE-250:
--------------------------------------------------

    Fix Version/s:     (was: 2.0 Report Plugin)
                   2.0 Report Plugin
              Key: SUREFIRE-250  (was: MSUREFIREREP-9)
          Project: Maven Surefire  (was: Maven 2.x Surefire report Plugin)

> surefire-report-maven-plugin: don't add report for non java projects
> --------------------------------------------------------------------
>
>                 Key: SUREFIRE-250
>                 URL: http://jira.codehaus.org/browse/SUREFIRE-250
>             Project: Maven Surefire
>          Issue Type: Bug
>            Reporter: fabrizio giustina
>         Assigned To: Carlos Sanchez
>             Fix For: 2.0 Report Plugin
>
>         Attachments: MOJO-surefirereport.diff
>
>
> the surefire report should not be executed for non java (e.g. pom) projects.
> +    /**
> +     * @see org.apache.maven.reporting.AbstractMavenReport#canGenerateReport()
> +     */
> +    public boolean canGenerateReport()
> +    {
> +        // Only execute reports for java projects
> +        ArtifactHandler artifactHandler = this.project.getArtifact().getArtifactHandler();
> +        return "java".equals( artifactHandler.getLanguage() );
> +    }

-- 
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