[ http://jira.codehaus.org/browse/MOJO-562?page=comments#action_80416 ] Rémy Sanlaville commented on MOJO-562: --------------------------------------
> HTML is always created. Not for me. I just have the findbugs.xml file How can I have both HTML and XML reports ? If you use for example the xmlOutputDirectory option for the xml, it is possible to initialize it by default with the outputDirectory option value ? Thanks, Rémy > outputDirectory skip with XML report > ------------------------------------ > > Key: MOJO-562 > URL: http://jira.codehaus.org/browse/MOJO-562 > Project: Mojo > Issue Type: Bug > Components: findbugs > Environment: Maven 2.0.4, findbugs-maven-plugin:1.0-SNAPSHOT > Reporter: Rémy Sanlaville > Attachments: FindBugsMojo-2.patch, FindBugsMojo.patch > > > If you try to create an XML findbugs report, the plugin does not take into > account the outputDirectory description. > For example: > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>findbugs-maven-plugin</artifactId> > <version>1.0-SNAPSHOT</version> > <executions> > ... > </executions> > <configuration> > <reportFormat>xml</reportFormat> > > <outputDirectory>${project.build.directory}/findbugs</outputDirectory> > </configuration> > </plugin> > >mvn findbugs:findbugs > findbugs.xml report will be in ${project.build.directory}/ and not in > ${project.build.directory}/findbugs > I think I found the problem. > Look at the initialiseFindBugs(Locale, List) method of the FindBugsMojo class. > The plugin use the tempOutputDirectory rather than outputDirectory > You will find in attachment my patch > Remy -- 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 from this list please visit: http://xircles.codehaus.org/manage_email
