public class GitCommitIdMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
static String |
BRANCH |
static String |
BUILD_AUTHOR_EMAIL |
static String |
BUILD_AUTHOR_NAME |
static String |
BUILD_HOST |
static String |
BUILD_TIME |
static String |
BUILD_VERSION |
static String |
CLOSEST_TAG_COMMIT_COUNT |
static String |
CLOSEST_TAG_NAME |
static String |
COMMIT_AUTHOR_EMAIL |
static String |
COMMIT_AUTHOR_NAME |
static String |
COMMIT_DESCRIBE |
static String |
COMMIT_ID |
static String |
COMMIT_ID_ABBREV |
static String |
COMMIT_ID_FLAT |
static String |
COMMIT_ID_FULL |
static String |
COMMIT_MESSAGE_FULL |
static String |
COMMIT_MESSAGE_SHORT |
static String |
COMMIT_SHORT_DESCRIBE |
static String |
COMMIT_TIME |
static String |
DIRTY |
static String |
REMOTE_ORIGIN_URL |
protected org.apache.maven.execution.MavenSession |
session
The Maven Session Object
|
static String |
TAGS |
| Constructor and Description |
|---|
GitCommitIdMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
LoggerBridge |
getLoggerBridge() |
Properties |
getProperties() |
void |
setAbbrevLength(int abbrevLength) |
void |
setCommitIdGenerationMode(String commitIdGenerationMode) |
void |
setDateFormat(String dateFormat) |
void |
setDotGitDirectory(File dotGitDirectory) |
void |
setExcludeProperties(List<String> excludeProperties) |
void |
setFormat(String format) |
void |
setGitDescribe(GitDescribeConfig gitDescribe) |
void |
setIncludeOnlyProperties(List<String> includeOnlyProperties) |
void |
setPrefix(String prefix) |
void |
setVerbose(boolean verbose) |
void |
useNativeGit(boolean useNativeGit) |
public static final String BRANCH
public static final String DIRTY
public static final String COMMIT_ID_FLAT
public static final String COMMIT_ID_FULL
public static String COMMIT_ID
public static final String COMMIT_ID_ABBREV
public static final String COMMIT_DESCRIBE
public static final String COMMIT_SHORT_DESCRIBE
public static final String BUILD_AUTHOR_NAME
public static final String BUILD_AUTHOR_EMAIL
public static final String BUILD_TIME
public static final String BUILD_VERSION
public static final String BUILD_HOST
public static final String COMMIT_AUTHOR_NAME
public static final String COMMIT_AUTHOR_EMAIL
public static final String COMMIT_MESSAGE_FULL
public static final String COMMIT_MESSAGE_SHORT
public static final String COMMIT_TIME
public static final String REMOTE_ORIGIN_URL
public static final String TAGS
public static final String CLOSEST_TAG_NAME
public static final String CLOSEST_TAG_COMMIT_COUNT
protected org.apache.maven.execution.MavenSession session
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic void setFormat(String format)
public void setVerbose(boolean verbose)
public void setDotGitDirectory(File dotGitDirectory)
public void setPrefix(String prefix)
public void setDateFormat(String dateFormat)
public Properties getProperties()
public void setGitDescribe(GitDescribeConfig gitDescribe)
public void setAbbrevLength(int abbrevLength)
public void useNativeGit(boolean useNativeGit)
public void setCommitIdGenerationMode(String commitIdGenerationMode)
public LoggerBridge getLoggerBridge()
Copyright © 2015. All Rights Reserved.