@Mojo(name="export", requiresProject=false) public class ExportMojo extends AbstractScmMojo
Modifier and Type | Field and 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 and Description |
---|
ExportMojo() |
Modifier and Type | Method and Description |
---|---|
void |
execute() |
protected void |
export() |
protected java.io.File |
getExportDirectory() |
void |
setExportDirectory(java.io.File exportDirectory) |
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectory
@Parameter(property="scmVersionType") private java.lang.String scmVersionType
@Parameter(property="scmVersion") private java.lang.String scmVersion
@Parameter(property="exportDirectory", defaultValue="${project.build.directory}/export", required=true) private java.io.File exportDirectory
@Parameter(property="skipExportIfExists", defaultValue="false") private boolean skipExportIfExists
public void execute() throws org.apache.maven.plugin.MojoExecutionException
execute
in interface org.apache.maven.plugin.Mojo
execute
in class AbstractScmMojo
org.apache.maven.plugin.MojoExecutionException
protected java.io.File getExportDirectory()
public void setExportDirectory(java.io.File exportDirectory)
protected void export() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException