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
@Mojo(name="diff", aggregator=true) public class DiffMojo extends AbstractScmMojo
Display the difference of the working copy with the latest copy in the configured scm url.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
endScmVersion
The version (revision number/branch name/tag name).private java.lang.String
endScmVersionType
The version type (branch/tag/revision) of scmVersion.private java.io.File
outputFile
Output file name.private java.lang.String
startScmVersion
The version (revision number/branch name/tag name).private java.lang.String
startScmVersionType
The version type (branch/tag/revision) of scmVersion.
-
Constructor Summary
Constructors Constructor Description DiffMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
-
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
-
-
-
-
Field Detail
-
startScmVersionType
@Parameter(property="startScmVersionType") private java.lang.String startScmVersionType
The version type (branch/tag/revision) of scmVersion.
-
startScmVersion
@Parameter(property="startScmVersion") private java.lang.String startScmVersion
The version (revision number/branch name/tag name).
-
endScmVersionType
@Parameter(property="endScmVersionType") private java.lang.String endScmVersionType
The version type (branch/tag/revision) of scmVersion.
-
endScmVersion
@Parameter(property="endScmVersion") private java.lang.String endScmVersion
The version (revision number/branch name/tag name).
-
outputFile
@Parameter(property="outputFile", defaultValue="${project.artifactId}.diff") private java.io.File outputFile
Output file name.
-
-
Method Detail
-
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
-
-