@Component(role=org.eclipse.tycho.packaging.sourceref.SourceReferencesProvider.class,
hint="git")
public class JGitSourceReferencesProvider
extends java.lang.Object
implements org.eclipse.tycho.packaging.sourceref.SourceReferencesProvider
Constructor and Description |
---|
JGitSourceReferencesProvider() |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
findTagForHead(org.eclipse.jgit.api.Git git,
org.eclipse.jgit.lib.ObjectId head) |
(package private) java.lang.String |
getRelativePath(java.io.File subDir,
java.io.File parentDir) |
java.lang.String |
getSourceReferencesHeader(org.apache.maven.project.MavenProject project,
org.eclipse.tycho.packaging.sourceref.ScmUrl scmUrl) |
private org.eclipse.jgit.lib.ObjectId |
resolveHead(org.eclipse.jgit.lib.Repository repo) |
public java.lang.String getSourceReferencesHeader(org.apache.maven.project.MavenProject project, org.eclipse.tycho.packaging.sourceref.ScmUrl scmUrl) throws org.apache.maven.plugin.MojoExecutionException
getSourceReferencesHeader
in interface org.eclipse.tycho.packaging.sourceref.SourceReferencesProvider
org.apache.maven.plugin.MojoExecutionException
private org.eclipse.jgit.lib.ObjectId resolveHead(org.eclipse.jgit.lib.Repository repo) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
private java.lang.String findTagForHead(org.eclipse.jgit.api.Git git, org.eclipse.jgit.lib.ObjectId head) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException
java.lang.String getRelativePath(java.io.File subDir, java.io.File parentDir) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException