@Component(role=ScmHandler.class, hint="GIT") public class ScmHandlerGitImpl extends Object implements ScmHandler
ScmHandler based on JGit.NONSNAPSHOT_COMMIT_MESSAGE_PREFIX| Constructor and Description |
|---|
ScmHandlerGitImpl() |
| 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 path)
Check if the project directory is a even a working copy
|
public boolean isWorkingCopy(File path)
ScmHandlerisWorkingCopy in interface ScmHandlerpath - Filepublic Date getLastCommitDate(File path)
ScmHandlergetLastCommitDate in interface ScmHandlerpath - Stringpublic boolean checkChangesSinceRevision(File moduleDirectory, long sinceRevision, long workspaceRevision)
ScmHandlercheckChangesSinceRevision in interface ScmHandlermoduleDirectory - FilesinceRevision - longworkspaceRevision - longpublic boolean checkChangesSinceDate(File moduleDirectory, Date sinceDate, Date workspaceLastCommitDate)
ScmHandlercheckChangesSinceDate in interface ScmHandlermoduleDirectory - FilesinceDate - DateworkspaceLastCommitDate - Datepublic long getCurrentRevisionId(File path)
ScmHandlergetCurrentRevisionId in interface ScmHandlerpath - Filepublic void commitFiles(List<File> files, String commitMessage)
ScmHandlercommitFiles in interface ScmHandlerfiles - List<File>commitMessage - Stringpublic void init(File baseDir, String scmUser, String scmPassword, Properties properties)
ScmHandlerinit in interface ScmHandlerbaseDir - FilescmUser - StringscmPassword - Stringproperties - PropertiesCopyright © 2019. All rights reserved.