@Component(role=SVNUtil.class, hint="SVNUtil") public class SVNUtil extends Object
| Constructor and Description |
|---|
SVNUtil()
Instantiates a new SVN util.
|
| Modifier and Type | Method and Description |
|---|---|
SVNInfo |
checkFile(org.apache.maven.plugin.logging.Log log,
ScmType type,
String svnUrl,
String baseDir,
String relativeFilePath)
Gets the information about a file in a local working directory.
|
String |
checkout(org.apache.maven.plugin.logging.Log log,
ScmType type,
String svnUrl,
String destination)
Checkout from the given svn url to the destination directory.
|
String |
diff(org.apache.maven.plugin.logging.Log log,
ScmType type,
String svnUrl,
String checkoutDir,
String relativeFilePath,
String baseRevision,
String newRevision)
Retrieves a unified diff for a given file and revision.
|
SVNLogChange |
log(org.apache.maven.plugin.logging.Log log,
ScmType type,
String svnUrl,
String checkoutDir,
String relativeFilePath,
String baseRevision,
String newRevision)
Determines whether a given file has been modified between two revisions.
|
static String |
toCompleteUrl(String repoPrefix,
String repoUrl)
Utility method to combine a prefix and url to get the complete repository URL.
|
static String |
toRepoId(String repoPrefix,
String repoUrl)
Calculates a unique id for the given repo url.
|
public String checkout(org.apache.maven.plugin.logging.Log log, ScmType type, String svnUrl, String destination)
log - the logtype - the scm typesvnUrl - the svn urldestination - the destinationpublic SVNInfo checkFile(org.apache.maven.plugin.logging.Log log, ScmType type, String svnUrl, String baseDir, String relativeFilePath)
log - the logtype - the scm typesvnUrl - the checked out repository urlbaseDir - the directory where the repository has been checked outrelativeFilePath - the file to check relative to baseDirpublic SVNLogChange log(org.apache.maven.plugin.logging.Log log, ScmType type, String svnUrl, String checkoutDir, String relativeFilePath, String baseRevision, String newRevision)
log - the logtype - the scm typesvnUrl - the repository urlcheckoutDir - the checkout directoryrelativeFilePath - the file to check, relative to the checkout directorybaseRevision - the old revision (exclusive)newRevision - the new revision (inclusive)public String diff(org.apache.maven.plugin.logging.Log log, ScmType type, String svnUrl, String checkoutDir, String relativeFilePath, String baseRevision, String newRevision)
log - the logtype - the scm typesvnUrl - the repository urlcheckoutDir - the checkout directoryrelativeFilePath - the file to diff, relative to the checkout directorybaseRevision - the old revisionnewRevision - the new revisionpublic static String toCompleteUrl(String repoPrefix, String repoUrl)
repoPrefix - the prefixrepoUrl - the urlCopyright © 2013-2015. All Rights Reserved.