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 AbstractScmMojoDisplay 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.StringendScmVersionThe version (revision number/branch name/tag name).private java.lang.StringendScmVersionTypeThe version type (branch/tag/revision) of scmVersion.private java.io.FileoutputFileOutput file name.private java.lang.StringstartScmVersionThe version (revision number/branch name/tag name).private java.lang.StringstartScmVersionTypeThe 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
-
-
Constructor Summary
Constructors Constructor Description DiffMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute()-
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 outputFileOutput file name.
-
-
Constructor Detail
-
DiffMojo
@Inject public DiffMojo(ScmManager manager, org.apache.maven.settings.crypto.SettingsDecrypter settingsDecrypter)
-
-
Method Detail
-
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
-
-