public class SvnSourceControlManagement extends SourceControlManagement
SourceControlManagement.ExecutionResult, SourceControlManagement.Statusexecutable, rootFolder| Constructor and Description |
|---|
SvnSourceControlManagement(String executable)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(List<File> files)
Adds the specified files to be included into the next commit.
|
boolean |
commit(String message)
Performs a commit into the SCM.
|
protected Map<String,SourceControlManagement.Status> |
createStatusMap() |
Map<String,String> |
getBranchInfos(String uri)
List all available branches on distant repository
|
protected void |
getFromSCM(File workingDirectory,
String uri,
String branchOrTag) |
Map<String,String> |
getTagInfos(String uri)
List all available tags on distant repository
|
String |
getURI()
Returns an SCM URI.
|
protected void |
initWithWorkingDirectory(File workingDirectory) |
void |
markConflictAsResolved(File file)
Mark SCM conflict as resolved for the specified resource.
|
void |
move(File src,
File dst)
Moves the specified resource to a new location.
|
void |
remove(File file)
Deletes the specified item from the working copy or repository.
|
protected void |
sendToSCM(File workingDirectory,
String uri) |
String |
update()
Performs SCM update.
|
add, checkCommit, checkExecutionResult, executeCommand, getRootFolder, getStatus, getStatusMap, invalidateStatusCache, readLinespublic SvnSourceControlManagement(String executable)
executable - the SVN executablepublic void add(List<File> files) throws IOException
SourceControlManagementadd in class SourceControlManagementfiles - the list of files to be considered as modifiedIOException - in case of an SCM related errorpublic boolean commit(String message) throws IOException
SourceControlManagementcommit in class SourceControlManagementmessage - the commit messagetrue if the commit was effectively executed; false otherwiseIOException - in case of a commit process errorprotected Map<String,SourceControlManagement.Status> createStatusMap() throws IOException
createStatusMap in class SourceControlManagementIOExceptionpublic String getURI() throws IOException
SourceControlManagementgetURI in class SourceControlManagementIOException - in case of an SCM related errorprotected void getFromSCM(File workingDirectory, String uri, String branchOrTag) throws IOException
getFromSCM in class SourceControlManagementIOExceptionprotected void sendToSCM(File workingDirectory, String uri) throws IOException
sendToSCM in class SourceControlManagementIOExceptionprotected void initWithWorkingDirectory(File workingDirectory) throws IOException
initWithWorkingDirectory in class SourceControlManagementIOExceptionpublic void markConflictAsResolved(File file) throws IOException
SourceControlManagementmarkConflictAsResolved in class SourceControlManagementfile - the resource to make as resolvedIOException - in case of SCM errorspublic void move(File src, File dst) throws IOException
SourceControlManagementmove in class SourceControlManagementsrc - the sourcedst - the destinationIOException - in case of SCM errorspublic void remove(File file) throws IOException
SourceControlManagementremove in class SourceControlManagementfile - the resource to be removedIOException - in case of SCM errorspublic String update() throws IOException
SourceControlManagementupdate in class SourceControlManagementIOException - in case of SCM errorspublic Map<String,String> getTagInfos(String uri) throws IOException
SourceControlManagementgetTagInfos in class SourceControlManagementuri - the remote SCM repository URI (of the trunk for SVN)IOException - in case of tag info retrieval errorspublic Map<String,String> getBranchInfos(String uri) throws IOException
SourceControlManagementgetBranchInfos in class SourceControlManagementuri - the remote SCM repository URI (of the trunk for SVN)IOException - in case of branch info retrieval errorsCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.