Klasse BranchMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
com.github.koraktor.mavanagaiata.mojo.AbstractGitMojo
com.github.koraktor.mavanagaiata.mojo.BranchMojo
- Alle implementierten Schnittstellen:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="branch",
defaultPhase=INITIALIZE,
threadSafe=true)
public class BranchMojo
extends AbstractGitMojo
This goal provides the currently checked out Git branch in the
"mavanagaiata.branch" and "mvngit.branch" properties.
- 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) Information about the currently checked 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
-
BranchMojo
public BranchMojo()
-
-
Methodendetails
-
run
Information about the currently checked 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:
-