Package org.apache.maven.scm.plugin
Class ExportMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.apache.maven.scm.plugin.AbstractScmMojo
-
- org.apache.maven.scm.plugin.ExportMojo
-
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="export", requiresProject=false) public class ExportMojo extends AbstractScmMojo
Get a fresh exported copy of the latest source from the configured scm url.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.File
exportDirectory
The directory to export the sources to.private java.lang.String
scmVersion
The version (revision number/branch name/tag name).private java.lang.String
scmVersionType
The version type (branch/tag/revision) of scmVersion.private boolean
skipExportIfExists
Skip export if exportDirectory exists.
-
Constructor Summary
Constructors Constructor Description ExportMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute()
protected void
export()
protected java.io.File
getExportDirectory()
void
setExportDirectory(java.io.File exportDirectory)
-
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
-
scmVersionType
@Parameter(property="scmVersionType") private java.lang.String scmVersionType
The version type (branch/tag/revision) of scmVersion.
-
scmVersion
@Parameter(property="scmVersion") private java.lang.String scmVersion
The version (revision number/branch name/tag name).
-
exportDirectory
@Parameter(property="exportDirectory", defaultValue="${project.build.directory}/export", required=true) private java.io.File exportDirectory
The directory to export the sources to.
-
skipExportIfExists
@Parameter(property="skipExportIfExists", defaultValue="false") private boolean skipExportIfExists
Skip export if exportDirectory exists.
-
-
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
-
getExportDirectory
protected java.io.File getExportDirectory()
-
setExportDirectory
public void setExportDirectory(java.io.File exportDirectory)
-
export
protected void export() throws org.apache.maven.plugin.MojoExecutionException
- Throws:
org.apache.maven.plugin.MojoExecutionException
-
-