From: Jeff J. <jef...@us...> - 2006-05-03 03:50:17
|
jeffjensen 06/05/02 20:50:11 Modified: findbugs plugin.jelly findbugs/xdocs properties.xml Log: Added properties: maven.findbugs.timeout, maven.findbugs.visitors, maven.findbugs.omitVisitors, maven.findbugs.plugins Revision Changes Path 1.13 +17 -1 maven-plugins/findbugs/plugin.jelly Index: plugin.jelly =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/findbugs/plugin.jelly,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- plugin.jelly 11 Oct 2005 05:06:37 -0000 1.12 +++ plugin.jelly 3 May 2006 03:50:11 -0000 1.13 @@ -65,7 +65,7 @@ <!-- Define a FindBugs task with the rulesets and all jars in the classpath --> - <path id="findbugs.classpath"> + <path id="findbugs.classpath"> <pathelement location="${plugin.getDependencyPath('findbugs:bcel')}"/> <pathelement location="${plugin.getDependencyPath('findbugs:coreplugin')}"/> <pathelement location="${plugin.getDependencyPath('findbugs:findbugs')}"/> @@ -75,6 +75,9 @@ <path id="findbugs.pluginlist"> <pathelement location="${plugin.getDependencyPath('findbugs:coreplugin')}"/> + <j:if test="${context.getVariable('maven.findbugs.plugins') != null}"> + <pathelement path="${maven.findbugs.plugins}"/> + </j:if> </path> <ant:taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"> @@ -106,6 +109,19 @@ <j:if test="${context.getVariable('maven.findbugs.includeFilter') != null}"> <ant:setProperty name="includeFilter" value="${maven.findbugs.includeFilter}" /> </j:if> + + <j:if test="${context.getVariable('maven.findbugs.timeout') != null}"> + <ant:setProperty name="timeout" value="${maven.findbugs.timeout}" /> + </j:if> + + <j:if test="${context.getVariable('maven.findbugs.visitors') != null}"> + <ant:setProperty name="visitors" value="${maven.findbugs.visitors}" /> + </j:if> + + <j:if test="${context.getVariable('maven.findbugs.omitVisitors') != null}"> + <ant:setProperty name="omitVisitors" value="${maven.findbugs.omitVisitors}" /> + </j:if> + <j:forEach var="artifact" items="${pom.artifacts}"> <j:set var="dep" value="${artifact.dependency}"/> <j:if test="${dep.type =='jar'}"> 1.6 +37 -1 maven-plugins/findbugs/xdocs/properties.xml Index: properties.xml =================================================================== RCS file: /cvsroot/maven-plugins/maven-plugins/findbugs/xdocs/properties.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- properties.xml 6 May 2005 22:05:00 -0000 1.5 +++ properties.xml 3 May 2006 03:50:11 -0000 1.6 @@ -75,7 +75,43 @@ Only report bug instances that match the filter specified in the xml Filter file. See http://findbugs.sourceforge.net for more information. </p> </td> - </tr> + </tr> + <tr> + <td>maven.findbugs.timeout</td> + <td>Yes</td> + <td> + <p> + It specifies the amount of time, in milliseconds, that the Java process executing FindBugs may run before it is assumed to be hung and is terminated. The default is 600,000 milliseconds, which is ten minutes. Note that for very large programs, FindBugs may require more than ten minutes to complete its analysis. + </p> + </td> + </tr> + <tr> + <td>maven.findbugs.visitors</td> + <td>Yes</td> + <td> + <p> + It specifies a comma-separated list of bug detectors which should be run. The bug detectors are specified by their class names, without any package qualification. By default, all detectors which are not disabled by default are run. + </p> + </td> + </tr> + <tr> + <td>maven.findbugs.omitVisitors</td> + <td>Yes</td> + <td> + <p> + It is like the visitors attribute, except it specifies detectors which will not be run. + </p> + </td> + </tr> + <tr> + <td>maven.findbugs.plugins</td> + <td>Yes</td> + <td> + <p> + Classpath of plugin Jar files to load separated by either a colon or semicolon. These are in addition to the core plugins. + </p> + </td> + </tr> </table> </section> |