Class FilesScanner
- java.lang.Object
-
- jenkins.MasterToSlaveFileCallable<edu.hm.hafner.analysis.Report>
-
- io.jenkins.plugins.analysis.core.model.FilesScanner
-
- All Implemented Interfaces:
FilePath.FileCallable<edu.hm.hafner.analysis.Report>
,Serializable
,org.jenkinsci.remoting.RoleSensitive
public class FilesScanner extends MasterToSlaveFileCallable<edu.hm.hafner.analysis.Report>
Scans files that match a specified Ant files pattern for issues and aggregates the found issues into a singleissues
instance. This callable will be invoked on an agent so all fields and the returned issues need to beSerializable
.- Author:
- Ullrich Hafner
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FilesScanner(String filePattern, String encoding, boolean followSymbolicLinks, edu.hm.hafner.analysis.IssueParser parser)
Creates a new instance ofFilesScanner
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description edu.hm.hafner.analysis.Report
invoke(File workspace, hudson.remoting.VirtualChannel channel)
-
Methods inherited from class jenkins.MasterToSlaveFileCallable
checkRoles
-
-
-
-
Constructor Detail
-
FilesScanner
public FilesScanner(String filePattern, String encoding, boolean followSymbolicLinks, edu.hm.hafner.analysis.IssueParser parser)
Creates a new instance ofFilesScanner
.- Parameters:
filePattern
- ant file-set pattern to scan for files to parseencoding
- encoding of the files to parsefollowSymbolicLinks
- if the scanner should traverse symbolic linksparser
- the parser to use
-
-
Method Detail
-
invoke
public edu.hm.hafner.analysis.Report invoke(File workspace, hudson.remoting.VirtualChannel channel)
-
-