Package org.apache.maven.scm.plugin
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 String
Date Format in changelog output of scm tool.private static final String
private String
End Date.private String
End Scm Version.private String
End Scm Version Type.private Integer
The number of change log items to return.private Integer
The number of days to look back for change log items to return.private String
The branch name (TODO find out what this is for).private String
The version (revision number/branch name/tag name).private String
The version type (branch/tag) of scmVersion.private String
Start Date.private String
Start Scm Version.private String
Start Scm Version Type.private String
Date format to use for the specified startDate and/or endDate.Fields inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
VALID_VERSION_TYPES, VERSION_TYPE_BRANCH, VERSION_TYPE_REVISION, VERSION_TYPE_TAG
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
private Date
parseDate
(SimpleDateFormat format, String date) Converts the localized date string pattern to date object.Methods inherited from class org.apache.maven.scm.plugin.AbstractScmMojo
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectory
Methods 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
public ChangeLogMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException- Specified by:
execute
in interfaceorg.apache.maven.plugin.Mojo
- Overrides:
execute
in 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
-