Class 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 single issues instance. This callable will be invoked on an agent so all fields and the returned issues need to be Serializable.
    Author:
    Ullrich Hafner
    See Also:
    Serialized Form
    • Constructor Detail

      • FilesScanner

        public FilesScanner​(String filePattern,
                            String encoding,
                            boolean followSymbolicLinks,
                            edu.hm.hafner.analysis.IssueParser parser)
        Creates a new instance of FilesScanner.
        Parameters:
        filePattern - ant file-set pattern to scan for files to parse
        encoding - encoding of the files to parse
        followSymbolicLinks - if the scanner should traverse symbolic links
        parser - the parser to use
    • Method Detail

      • invoke

        public edu.hm.hafner.analysis.Report invoke​(File workspace,
                                                    hudson.remoting.VirtualChannel channel)