|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.plugins.analysis.core.FilesParser
public class FilesParser
Parses files that match the specified pattern and creates a corresponding
ParserResult with a collection of annotations.
| Method Summary | |
|---|---|
ParserResult |
invoke(File workspace,
hudson.remoting.VirtualChannel channel)
|
protected void |
log(String message)
Logs the specified message. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FilesParser(String pluginId,
String filePattern,
AnnotationParser parser,
String moduleName)
FilesParser.
pluginId - the ID of the plug-in that uses this parserfilePattern - ant file-set pattern to scan for files to parseparser - the parser to apply on the found filesmoduleName - the name of the module to use for all files
public FilesParser(String pluginId,
String filePattern,
AnnotationParser parser,
boolean shouldDetectModules,
boolean isMavenBuild)
FilesParser.
pluginId - the ID of the plug-in that uses this parserfilePattern - ant file-set pattern to scan for files to parseparser - the parser to apply on the found filesshouldDetectModules - determines whether modules should be detected from pom.xml or
build.xml filesisMavenBuild - determines whether this build uses maven
public FilesParser(String pluginId,
String filePattern,
AnnotationParser parser,
boolean shouldDetectModules,
boolean isMavenBuild,
boolean canResolveRelativePaths)
FilesParser.
pluginId - the ID of the plug-in that uses this parserfilePattern - ant file-set pattern to scan for files to parseparser - the parser to apply on the found filesshouldDetectModules - determines whether modules should be detected from pom.xml or
build.xml filesisMavenBuild - determines whether this build uses mavencanResolveRelativePaths - determines whether relative paths in warnings should be
resolved using a time expensive operation that scans the whole
workspace for matching files.
@Deprecated
public FilesParser(PluginLogger logger,
String filePattern,
AnnotationParser parser,
boolean isMavenBuild)
FilesParser(String, String, AnnotationParser, boolean, boolean)
FilesParser.
logger - the loggerfilePattern - ant file-set pattern to scan for files to parseparser - the parser to apply on the found filesisMavenBuild - determines whether this build uses maven
@Deprecated
public FilesParser(PluginLogger logger,
String filePattern,
AnnotationParser parser,
String moduleName)
FilesParser(String, String, AnnotationParser, boolean, boolean)
FilesParser. Assumes that this is a
Maven build with the specified module name.
logger - the loggerfilePattern - ant file-set pattern to scan for files to parseparser - the parser to apply on the found filesmoduleName - the name of the module to use for all files
@Deprecated
public FilesParser(PluginLogger logger,
String filePattern,
AnnotationParser parser)
FilesParser(String, String, AnnotationParser, boolean, boolean)
FilesParser. Assumes that this is a
Maven build with the specified module name.
logger - the loggerfilePattern - ant file-set pattern to scan for files to parseparser - the parser to apply on the found files
@Deprecated
public FilesParser(StringPluginLogger logger,
String filePattern,
AnnotationParser parser,
String moduleName)
FilesParser(String, String, AnnotationParser, boolean, boolean)
FilesParser.
logger - the loggerfilePattern - ant file-set pattern to scan for files to parseparser - the parser to apply on the found filesmoduleName - the name of the module to use for all files
@Deprecated
public FilesParser(StringPluginLogger logger,
String filePattern,
AnnotationParser parser,
boolean shouldDetectModules,
boolean isMavenBuild)
FilesParser(String, String, AnnotationParser, boolean, boolean)
FilesParser.
logger - the loggerfilePattern - ant file-set pattern to scan for files to parseparser - the parser to apply on the found filesshouldDetectModules - determines whether modules should be detected from pom.xml or
build.xml filesisMavenBuild - determines whether this build uses maven| Method Detail |
|---|
protected void log(String message)
message - the message
public ParserResult invoke(File workspace,
hudson.remoting.VirtualChannel channel)
throws IOException
invoke in interface hudson.FilePath.FileCallable<ParserResult>IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||