Class FilesScanner

  • All Implemented Interfaces:
    FilePath.FileCallable<>, Serializable, org.jenkinsci.remoting.RoleSensitive

    public class FilesScanner
    extends MasterToSlaveFileCallable<>
    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.
    Ullrich Hafner
    See Also:
    Serialized Form
    • Constructor Detail

      • FilesScanner

        public FilesScanner​(String filePattern,
                            String encoding,
                            boolean followSymbolicLinks,
        Creates a new instance of FilesScanner.
        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 invoke​(File workspace,
                                                    hudson.remoting.VirtualChannel channel)