hudson.plugins.findbugs.parser
Class PlainFindBugsParser
java.lang.Object
hudson.plugins.findbugs.parser.PlainFindBugsParser
- Direct Known Subclasses:
- NativeFindBugsParser
public class PlainFindBugsParser
- extends java.lang.Object
A parser for the native FindBugs XML files (ant task, batch file or
maven-findbugs-plugin >= 1.2-SNAPSHOT).
- Author:
- Ulli Hafner
|
Method Summary |
static java.net.URL[] |
createPluginUrls()
Returns an URL array containing the references to the FindBugs libraries. |
MavenModule |
parse(java.io.InputStream file,
java.lang.String moduleRoot,
java.lang.String moduleName)
Returns the parsed FindBugs analysis file. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlainFindBugsParser
public PlainFindBugsParser()
parse
public MavenModule parse(java.io.InputStream file,
java.lang.String moduleRoot,
java.lang.String moduleName)
throws java.io.IOException,
org.dom4j.DocumentException
- Returns the parsed FindBugs analysis file. This scanner accepts files in
the native FindBugs format.
- Parameters:
file - the FindBugs analysis filemoduleRoot - the root path of the maven modulemoduleName - name of maven module
- Returns:
- the parsed result (stored in the module instance)
- Throws:
java.io.IOException - if the file could not be parsed
org.dom4j.DocumentException
createPluginUrls
public static java.net.URL[] createPluginUrls()
throws java.net.MalformedURLException
- Returns an URL array containing the references to the FindBugs libraries.
- Returns:
- URL array containing the references to the FindBugs libraries
- Throws:
java.net.MalformedURLException
Copyright © 2008. All Rights Reserved.