[ http://jira.codehaus.org/browse/MOJO-201?page=all ]
     
Carlos Sanchez closed MOJO-201:
-------------------------------

     Assign To: Carlos Sanchez
    Resolution: Fixed

> surefire-report-maven-plugin: don't add report for non java projects
> --------------------------------------------------------------------
>
>          Key: MOJO-201
>          URL: http://jira.codehaus.org/browse/MOJO-201
>      Project: Mojo
>         Type: Bug

>   Components: JUnit Report
>     Versions: 2.0-beta-1
>     Reporter: fabrizio giustina
>     Assignee: Carlos Sanchez
>      Fix For: 2.0
>  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

Reply via email to