@Mojo(name="checkout",
requiresProject=false)
public class CheckoutMojo
extends AbstractScmMojo
| Modifier and Type | Field and Description |
|---|---|
private java.io.File |
checkoutDirectory
The directory to checkout the sources to for the bootstrap and checkout goals.
|
private ScmResult |
checkoutResult
allow extended mojo (ie BootStrap ) to see checkout result
|
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 |
skipCheckoutIfExists
Skip checkout if checkoutDirectory exists.
|
private boolean |
useExport
Use Export instead of checkout
|
| Constructor and Description |
|---|
CheckoutMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected ScmResult |
checkout() |
void |
execute() |
protected java.io.File |
getCheckoutDirectory() |
protected ScmResult |
getCheckoutResult() |
private void |
prepareOutputDirectory(java.io.File ouputDirectory) |
void |
setCheckoutDirectory(java.io.File checkoutDirectory) |
checkResult, getBasedir, getConnectionUrl, getExcludes, getFileSet, getIncludes, getScmManager, getScmRepository, getScmVersion, getWorkingDirectory, handleExcludesIncludesAfterCheckoutAndExport, setConnectionType, setConnectionUrl, setExcludes, setIncludes, setWorkingDirectory@Parameter(property="useExport",
defaultValue="false")
private boolean useExport
@Parameter(property="checkoutDirectory",
defaultValue="${project.build.directory}/checkout")
private java.io.File checkoutDirectory
@Parameter(property="skipCheckoutIfExists",
defaultValue="false")
private boolean skipCheckoutIfExists
@Parameter(property="scmVersionType") private java.lang.String scmVersionType
@Parameter(property="scmVersion") private java.lang.String scmVersion
private ScmResult checkoutResult
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
execute in interface org.apache.maven.plugin.Mojoexecute in class AbstractScmMojoorg.apache.maven.plugin.MojoExecutionExceptionprotected java.io.File getCheckoutDirectory()
public void setCheckoutDirectory(java.io.File checkoutDirectory)
protected ScmResult checkout() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprivate void prepareOutputDirectory(java.io.File ouputDirectory)
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected ScmResult getCheckoutResult()