public interface ScmHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
NONSNAPSHOT_COMMIT_MESSAGE_PREFIX |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkChangesSinceDate(File moduleDirectory,
Date sinceDate,
Date workspaceLastCommitDate)
Check if there has been changes since given date
|
boolean |
checkChangesSinceRevision(File moduleDirectory,
long sinceRevision,
long workspaceRevision)
Check if there has been changes since given revisionId
|
void |
commitFiles(List<File> files,
String commitMessage)
Commit the given path to the remote repository.
|
long |
getCurrentRevisionId(File path)
Get the current revision id of this path.
|
Date |
getLastCommitDate(File path)
Get date of last commit within given path.
|
void |
init(File baseDir,
String scmUser,
String scmPassword,
Properties properties)
Set the repository credentials
|
boolean |
isWorkingCopy(File moduleDirectory)
Check if the project directory is a even a working copy
|
static final String NONSNAPSHOT_COMMIT_MESSAGE_PREFIX
boolean isWorkingCopy(File moduleDirectory)
moduleDirectory - Filelong getCurrentRevisionId(File path)
path - Fileboolean checkChangesSinceRevision(File moduleDirectory, long sinceRevision, long workspaceRevision)
moduleDirectory - FilesinceRevision - longworkspaceRevision - longDate getLastCommitDate(File path)
path - Stringboolean checkChangesSinceDate(File moduleDirectory, Date sinceDate, Date workspaceLastCommitDate)
moduleDirectory - FilesinceDate - DateworkspaceLastCommitDate - Datevoid commitFiles(List<File> files, String commitMessage)
files - List<File>commitMessage - Stringvoid init(File baseDir, String scmUser, String scmPassword, Properties properties)
baseDir - FilescmUser - StringscmPassword - Stringproperties - PropertiesCopyright © 2019. All rights reserved.