Package org.apache.maven.scm.plugin
Class DiffMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.scm.plugin.AbstractScmMojo
org.apache.maven.scm.plugin.DiffMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
Display the difference of the working copy with the latest copy in the configured scm url.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
The version (revision number/branch name/tag name).private String
The version type (branch/tag/revision) of scmVersion.private File
Output file name.private String
The version (revision number/branch name/tag name).private String
The version type (branch/tag/revision) of scmVersion.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
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
-
startScmVersionType
The version type (branch/tag/revision) of scmVersion. -
startScmVersion
The version (revision number/branch name/tag name). -
endScmVersionType
The version type (branch/tag/revision) of scmVersion. -
endScmVersion
The version (revision number/branch name/tag name). -
outputFile
@Parameter(property="outputFile", defaultValue="${project.artifactId}.diff") private File outputFileOutput file name.
-
-
Constructor Details
-
DiffMojo
public DiffMojo()
-
-
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
-