hudson.plugins.pmd.parser
Class PmdCollector
java.lang.Object
hudson.plugins.pmd.parser.PmdCollector
- All Implemented Interfaces:
- hudson.FilePath.FileCallable<JavaProject>, java.io.Serializable
public class PmdCollector
- extends java.lang.Object
- implements hudson.FilePath.FileCallable<JavaProject>
Parses the PMD files that match the specified pattern and creates a
corresponding Java project with a collection of annotations.
- Author:
- Ulli Hafner
- See Also:
- Serialized Form
|
Constructor Summary |
PmdCollector(java.io.PrintStream listener,
long buildTime,
java.lang.String filePattern)
Creates a new instance of PmdCollector. |
|
Method Summary |
static java.lang.String |
guessModuleName(java.lang.String fileName)
Guesses the module name based on the specified file name. |
JavaProject |
invoke(java.io.File workspace,
hudson.remoting.VirtualChannel channel)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PmdCollector
public PmdCollector(java.io.PrintStream listener,
long buildTime,
java.lang.String filePattern)
- Creates a new instance of
PmdCollector.
- Parameters:
listener - the LoggerbuildTime - build time stamp, only newer files are consideredfilePattern - ant file-set pattern to scan for PMD files
invoke
public JavaProject invoke(java.io.File workspace,
hudson.remoting.VirtualChannel channel)
throws java.io.IOException
-
- Specified by:
invoke in interface hudson.FilePath.FileCallable<JavaProject>
- Throws:
java.io.IOException
guessModuleName
public static java.lang.String guessModuleName(java.lang.String fileName)
- Guesses the module name based on the specified file name. Actually works
only for maven projects.
- Parameters:
fileName - the filename to guess the module name from
- Returns:
- the module name
Copyright © 2008. All Rights Reserved.