|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ScmDomain
ScmDomain is an abstraction for working with SCM tools.
| Method Summary | |
|---|---|
void |
add(File file)
Adds new working file to index. |
void |
add(File directory,
boolean recursive)
Adds new working directory to index. |
void |
checkout(String repository,
CommitRef version,
File directory,
boolean recursive)
Checkout version of repository path to specified working directory. |
void |
checkout(String path,
File directory,
boolean recursive)
Checkout HEAD version of repository path to specified working directory. |
CommitRef |
commit(File file,
String comment)
Commit changes of working file to repository. |
CommitRef |
commit(File directory,
String comment,
boolean recursive)
Commit working directory changes to repository. |
boolean |
exists(String file)
Check if HEAD revision of a file exists in repository. |
boolean |
exists(String file,
CommitRef version)
Check if given version of a file exists in repository. |
void |
export(File directory)
Exports the current head of the repository to the specified directory. |
boolean |
poll()
Polls the represented repository for updates. |
| Methods inherited from interface org.openengsb.core.common.Domain |
|---|
getAliveState |
| Methods inherited from interface org.openengsb.core.common.OpenEngSBService |
|---|
getInstanceId |
| Method Detail |
|---|
boolean poll()
void export(File directory)
directory - if the directory is non-existent, it'll be created. if the directory already exists it must not
contain any files.boolean exists(String file)
file exists in repository.
file - relative repository path to file
boolean exists(String file,
CommitRef version)
version of a file exists in repository.
file - relative repository path to fileversion - file version
void add(File file)
file to index.
{@link - ScmException} if working file does not exist or is not accessible.
void add(File directory,
boolean recursive)
directory to index.
{@link - ScmException} if working directory does not exist or is not accessible.
CommitRef commit(File file,
String comment)
file to repository.
CommitRef
{@link - ScmException} if working file does not exist or is not accessible.
CommitRef commit(File directory,
String comment,
boolean recursive)
directory changes to repository.
CommitRef
{@link - ScmException} if working directory does not exist or is not accessible.
void checkout(String repository,
CommitRef version,
File directory,
boolean recursive)
version of repository path to specified working directory. To checkout folder
with all its children set the recursive flag.
{@link - ScmException} if working directory is not accessible or can not be created.
void checkout(String path,
File directory,
boolean recursive)
path to specified working directory. To checkout folder with
all its children set the recursive flag.
{@link - ScmException} if working directory is not accessible or can not be created.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||