Klasse SourceCodePainter

java.lang.Object
io.jenkins.plugins.coverage.metrics.source.SourceCodePainter

public class SourceCodePainter extends Object
Highlights the code coverage information in all source code files. This process is executed on the agent node that has all source files checked out.
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    SourceCodePainter(Run<?,?> build, FilePath workspace, String id)
    Creates a painter for the passed build, using the passed properties.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    processSourceCodePainting(edu.hm.hafner.coverage.Node rootNode, List<edu.hm.hafner.coverage.FileNode> files, String sourceCodeEncoding, io.jenkins.plugins.prism.SourceCodeRetention sourceCodeRetention, edu.hm.hafner.util.FilteredLog log)
    Processes the source code painting.

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • SourceCodePainter

      public SourceCodePainter(@NonNull Run<?,?> build, @NonNull FilePath workspace, String id)
      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
      id - the ID of the coverage results - each ID will store the files in a separate directory
  • Methodendetails

    • processSourceCodePainting

      public void processSourceCodePainting(edu.hm.hafner.coverage.Node rootNode, List<edu.hm.hafner.coverage.FileNode> files, String sourceCodeEncoding, io.jenkins.plugins.prism.SourceCodeRetention sourceCodeRetention, edu.hm.hafner.util.FilteredLog log) throws InterruptedException
      Processes the source code painting.
      Parameter:
      rootNode - the root of the tree
      files - the files to paint
      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