public class ScmCommandExecutor extends Object
Constructor and Description |
---|
ScmCommandExecutor(org.apache.maven.scm.manager.ScmManager manager,
String connectionUrl,
org.apache.maven.plugin.logging.Log log)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
checkout(String targetDirectory)
Check out sources in the
targetDirectory . |
void |
checkout(String targetDirectory,
String includes,
String excludes)
Check out sources in the
targetDirectory . |
void |
update(String targetDirectory)
Update the sources in the
targetDirectory . |
void |
update(String targetDirectory,
String includes,
String excludes)
Update the sources in the
targetDirectory . |
public ScmCommandExecutor(org.apache.maven.scm.manager.ScmManager manager, String connectionUrl, org.apache.maven.plugin.logging.Log log)
manager
- the scmManagerconnectionUrl
- the connection URLlog
- the mojo loggerpublic void checkout(String targetDirectory) throws org.apache.maven.scm.ScmException
targetDirectory
.targetDirectory
- the directory where the sources will be checked outorg.apache.maven.scm.ScmException
- if the checkout throws an exceptionpublic void checkout(String targetDirectory, String includes, String excludes) throws org.apache.maven.scm.ScmException
targetDirectory
.targetDirectory
- the directory where the sources will be checked outincludes
- the sources to includeexcludes
- the sources to excludeorg.apache.maven.scm.ScmException
- if the checkout throws an exceptionpublic void update(String targetDirectory) throws org.apache.maven.scm.ScmException
targetDirectory
.targetDirectory
- the directory where the sources will be updatedorg.apache.maven.scm.ScmException
- if the update throws an exceptionpublic void update(String targetDirectory, String includes, String excludes) throws org.apache.maven.scm.ScmException
targetDirectory
.targetDirectory
- the directory where the sources will be updatedincludes
- the sources to includeexcludes
- the sources to excludeorg.apache.maven.scm.ScmException
- if the update throws an exceptionCopyright © 2011–2018 MojoHaus. All rights reserved.