|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.findbugs.parser.maven.MavenFindBugsParser
public class MavenFindBugsParser
A parser for the maven-findbugs-plugin XML files (version <= 1.1.1).
| Constructor Summary | |
|---|---|
MavenFindBugsParser()
|
|
| Method Summary | |
|---|---|
boolean |
accepts(java.io.InputStream file)
Returns whether this parser accepts the specified file format. |
void |
mapFiles(java.util.Collection<FileAnnotation> annotations,
java.lang.String[] files)
Maps each class with an warning to a workspace file. |
java.util.Collection<FileAnnotation> |
parse(java.io.InputStream file,
java.lang.String moduleName)
Returns the parsed FindBugs analysis file. |
java.util.Collection<FileAnnotation> |
parse(java.io.InputStream file,
java.lang.String moduleName,
hudson.FilePath workspace)
Returns the parsed FindBugs analysis file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MavenFindBugsParser()
| Method Detail |
|---|
public boolean accepts(java.io.InputStream file)
file - the file to parse
true if the provided file is in maven format.
public java.util.Collection<FileAnnotation> parse(java.io.InputStream file,
java.lang.String moduleName,
hudson.FilePath workspace)
throws java.io.IOException,
org.xml.sax.SAXException
file - the FindBugs analysis filemoduleName - name of the maven moduleworkspace - workspace root
java.io.IOException - if the file could not be parsed
org.xml.sax.SAXException - if the file is not in valid XML format
java.lang.InterruptedException - if the user aborts the mapping
public void mapFiles(java.util.Collection<FileAnnotation> annotations,
java.lang.String[] files)
annotations - the module containing the warningsfiles - the java files in the workspace
public java.util.Collection<FileAnnotation> parse(java.io.InputStream file,
java.lang.String moduleName)
throws java.io.IOException,
org.xml.sax.SAXException
file - the FindBugs analysis filemoduleName - name of the maven module
java.io.IOException - if the file could not be parsed
org.xml.sax.SAXException - if the file is not in valid XML format
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||