Klasse CoverageReportScanner

java.lang.Object
jenkins.MasterToSlaveFileCallable<io.jenkins.plugins.util.AgentFileVisitor.FileVisitorResult<edu.hm.hafner.coverage.ModuleNode>>
io.jenkins.plugins.util.AgentFileVisitor<edu.hm.hafner.coverage.ModuleNode>
io.jenkins.plugins.coverage.metrics.steps.CoverageReportScanner
Alle implementierten Schnittstellen:
FilePath.FileCallable<io.jenkins.plugins.util.AgentFileVisitor.FileVisitorResult<edu.hm.hafner.coverage.ModuleNode>>, Serializable, org.jenkinsci.remoting.RoleSensitive

public class CoverageReportScanner extends io.jenkins.plugins.util.AgentFileVisitor<edu.hm.hafner.coverage.ModuleNode>
Scans the workspace for coverage reports that match a specified Ant file pattern and parse these files with the specified parser. Creates a new ModuleNode for each parsed file. For files that cannot be read, an empty module node will be returned.
Autor:
Ullrich Hafner
Siehe auch:
  • Konstruktordetails

    • CoverageReportScanner

      public CoverageReportScanner(CoverageTool.Parser parser, String filePattern, String encoding, boolean followSymbolicLinks, edu.hm.hafner.coverage.CoverageParser.ProcessingMode processingMode)
      Creates a new instance of CoverageReportScanner.
      Parameter:
      parser - the parser to use
      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
      processingMode - determines whether to ignore errors
  • Methodendetails

    • processFile

      protected Optional<edu.hm.hafner.coverage.ModuleNode> processFile(Path file, Charset charset, edu.hm.hafner.util.FilteredLog log)
      Angegeben von:
      processFile in Klasse io.jenkins.plugins.util.AgentFileVisitor<edu.hm.hafner.coverage.ModuleNode>