Klasse CommitMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.koraktor.mavanagaiata.mojo.AbstractGitMojo
com.github.koraktor.mavanagaiata.mojo.CommitMojo
- Alle implementierten Schnittstellen:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="commit",
defaultPhase=INITIALIZE,
threadSafe=true)
public class CommitMojo
extends AbstractGitMojo
This goal provides the full ID of the current Git commit in the
"mavanagaiata.commit.id", "mavanagaiata.commit.sha", "mvngit.commit.id",
"mvngit.commit.sha" properties. The abbreviated commit ID is stored in the
"mavanagaiata.commit.abbrev" and "mvngit.commit.abbrev" properties.
Additionally the author's and committer's name and email address are stored
in the properties "mavanagaiata.commit.author.name",
"mavanagaiata.commit.author.email", "mvngit.commit.author.name" and
"mvngit.commit.author.email", and "mavanagaiata.commit.committer.name",
"mavanagaiata.commit.committer.email", "mvngit.commit.committer.name" and
"mvngit.commit.committer.email" respectively.
- Seit:
- 0.1.0
- Autor:
- Sebastian Staudt
-
Feldübersicht
Von Klasse geerbte Felder com.github.koraktor.mavanagaiata.mojo.AbstractGitMojo
baseDir, dateFormat, dirtyFlag, dirtyIgnoreUntracked, failGracefully, gitDir, head, project, propertyPrefixes, skip, skipNoGit
Von Schnittstelle geerbte Felder org.apache.maven.plugin.Mojo
ROLE
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
run
(GitRepository repository) The ID (full and abbreviated) of the current Git commit out Git branch is retrieved using a JGit Repository instanceVon Klasse geerbte Methoden com.github.koraktor.mavanagaiata.mojo.AbstractGitMojo
addProperty, execute, init, initRepository, prepareParameters
Von Klasse geerbte Methoden org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Konstruktordetails
-
CommitMojo
public CommitMojo()
-
-
Methodendetails
-
run
The ID (full and abbreviated) of the current Git commit out Git branch is retrieved using a JGit Repository instance- Angegeben von:
run
in KlasseAbstractGitMojo
- Parameter:
repository
- The repository instance to use- Löst aus:
MavanagaiataMojoException
- if retrieving information from the Git repository fails- Siehe auch:
-