Klasse AbstractRepositoryCallback<T>

java.lang.Object
io.jenkins.plugins.forensics.git.util.AbstractRepositoryCallback<T>
Typparameter:
T - the type of the return value
Alle implementierten Schnittstellen:
Serializable, org.jenkinsci.plugins.gitclient.RepositoryCallback<T>
Bekannte direkte Unterklassen:
DeltaRepositoryCallback

public abstract class AbstractRepositoryCallback<T> extends Object implements org.jenkinsci.plugins.gitclient.RepositoryCallback<T>
Code that gets executed on the machine where a Git working directory is local and Repository object is accessible.
Autor:
Ullrich Hafner
Siehe auch:
  • Konstruktordetails

    • AbstractRepositoryCallback

      public AbstractRepositoryCallback()
  • Methodendetails

    • getWorkTree

      public static String getWorkTree(org.eclipse.jgit.lib.Repository repository)
      Returns the root directory of the repository working tree. This path is absolute and normalized using the UNIX path separator.
      Parameter:
      repository - the repository
      Gibt zurück:
      the absolute path to the working tree
    • getAbsolutePath

      public static String getAbsolutePath(File absolute)
      Returns an absolute path for a given file in the Git repository, normalized using Unix path separators.
      Parameter:
      absolute - absolute file name
      Gibt zurück:
      the absolute path to the working tree