Klasse SourceCodePainter

java.lang.Object
io.jenkins.plugins.coverage.model.visualization.code.SourceCodePainter

public class SourceCodePainter extends Object
Processes the source code painting for highlighting code coverage.
  • Konstruktordetails

    • SourceCodePainter

      public SourceCodePainter(@NonNull Run<?,?> build, @NonNull FilePath workspace)
      Creates a painter for the passed build, using the passed properties.
      Parameter:
      build - The build which processes the source code
      workspace - The workspace which contains the source code files
  • Methodendetails

    • processSourceCodePainting

      public void processSourceCodePainting(Set<Map.Entry<CoverageNode,CoveragePaint>> paintedFiles, Set<String> sourceDirectories, String sourceCodeEncoding, io.jenkins.plugins.prism.SourceCodeRetention sourceCodeRetention, edu.hm.hafner.util.FilteredLog log) throws InterruptedException
      Processes the source code painting.
      Parameter:
      paintedFiles - The files to be painted together with the information which lines has to be highlighted
      sourceDirectories - the source directories that have been configured in the associated job
      sourceCodeEncoding - the encoding of the source code files
      sourceCodeRetention - the source code retention strategy
      log - The log
      Löst aus:
      InterruptedException - if the painting process has been interrupted