Package org.apache.maven.scm.plugin
Class AbstractScmMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.apache.maven.scm.plugin.AbstractScmMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
- Direct Known Subclasses:
AddMojo
,BranchMojo
,ChangeLogMojo
,CheckinMojo
,CheckLocalModificationsMojo
,CheckoutMojo
,DiffMojo
,EditMojo
,ExportMojo
,ListMojo
,RemoveMojo
,StatusMojo
,TagMojo
,UnEditMojo
,UntagMojo
,UpdateMojo
,UpdateSubprojectsMojo
,ValidateMojo
- Author:
- Emmanuel Venisse, Olivier Lamy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final String[]
protected static final String
protected static final String
protected static final String
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkResult
(ScmResult result) void
execute()
getScmVersion
(String versionType, String version) protected void
handleExcludesIncludesAfterCheckoutAndExport
(File checkoutDirectory) protected void
setConnectionType
(String connectionType) void
setConnectionUrl
(String connectionUrl) void
setExcludes
(String excludes) void
setIncludes
(String includes) void
setWorkingDirectory
(File workingDirectory) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
VERSION_TYPE_BRANCH
- See Also:
-
VERSION_TYPE_REVISION
- See Also:
-
VERSION_TYPE_TAG
- See Also:
-
VALID_VERSION_TYPES
-
-
Constructor Details
-
AbstractScmMojo
public AbstractScmMojo()
-
-
Method Details
-
execute
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
setConnectionType
-
getConnectionUrl
-
setConnectionUrl
-
getWorkingDirectory
-
getBasedir
-
setWorkingDirectory
-
getScmManager
-
getFileSet
- Throws:
IOException
-
getScmRepository
- Throws:
ScmException
-
checkResult
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
getIncludes
-
setIncludes
-
getExcludes
-
setExcludes
-
getScmVersion
public ScmVersion getScmVersion(String versionType, String version) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
handleExcludesIncludesAfterCheckoutAndExport
protected void handleExcludesIncludesAfterCheckoutAndExport(File checkoutDirectory) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-