Class ChangeLogMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.scm.plugin.AbstractScmMojo
org.apache.maven.scm.plugin.ChangeLogMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Dump changelog contents to console. It is mainly used to test maven-scm-api's changelog command.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringDate Format in changelog output of scm tool.private static final Stringprivate StringEnd Date.private StringEnd Scm Version.private StringEnd Scm Version Type.private IntegerThe number of change log items to return.private IntegerThe number of days to look back for change log items to return.private StringThe branch name (TODO find out what this is for).private StringThe version (revision number/branch name/tag name).private StringThe version type (branch/tag) of scmVersion.private StringStart Date.private StringStart Scm Version.private StringStart Scm Version Type.private StringDate format to use for the specified startDate and/or endDate.Fields inherited from class AbstractScmMojo
VALID_VERSION_TYPES, VERSION_TYPE_BRANCH, VERSION_TYPE_REVISION, VERSION_TYPE_TAGFields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
ConstructorsConstructorDescriptionChangeLogMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter) -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()private DateparseDate(SimpleDateFormat format, String date) Converts the localized date string pattern to date object.Methods inherited from class AbstractScmMojo
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectoryMethods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
DEFAULT_DATE_FORMAT
- See Also:
-
startDate
Start Date. -
endDate
End Date. -
startScmVersion
Start Scm Version. -
endScmVersion
End Scm Version. -
startScmVersionType
Start Scm Version Type. -
endScmVersionType
End Scm Version Type. -
dateFormat
Date Format in changelog output of scm tool. -
userDateFormat
Date format to use for the specified startDate and/or endDate. -
scmVersionType
The version type (branch/tag) of scmVersion. -
scmVersion
The version (revision number/branch name/tag name). -
scmBranch
The branch name (TODO find out what this is for). -
limit
The number of change log items to return. -
numDays
The number of days to look back for change log items to return.
-
-
Constructor Details
-
ChangeLogMojo
@Inject public ChangeLogMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
executein interfaceorg.apache.maven.plugin.Mojo- Overrides:
executein classAbstractScmMojo- Throws:
org.apache.maven.plugin.MojoExecutionException
-
parseDate
private Date parseDate(SimpleDateFormat format, String date) throws org.apache.maven.plugin.MojoExecutionException Converts the localized date string pattern to date object.- Returns:
- a date
- Throws:
org.apache.maven.plugin.MojoExecutionException
-