|
|||||||||
| 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 |
addDirectory(File directory,
boolean recursive)
Adds new working directory to SCM repository. |
void |
addFile(File file)
Adds new working file to SCM index. |
void |
checkoutDirectory(String path,
CommitRef id,
boolean recursive,
File directory)
Copy repository directory specified by relative path and
commit-ref id into newly created working directory. |
void |
checkoutFile(String path,
CommitRef id,
File directory)
Copy repository file specified by relative path
and commit-ref id into working directory. |
CommitRef |
commitDirectory(File directory,
String comment,
boolean recursive)
Commit changes on working directory to SCM repository. |
CommitRef |
commitFile(File file,
String comment)
Commit a single file to SCM repository. |
boolean |
exists(String path)
Checks if file or directory specified by relative path exists in repository. |
boolean |
exists(String path,
CommitRef id)
Checks if file or directory specified by relative path and id
(commit-ref) 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 |
| 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 path)
path exists in repository.
Returns true if item exists in repository, otherwise false.
boolean exists(String path,
CommitRef id)
path and id
(commit-ref) exists in repository. Returns true if item exists in repository, otherwise false.
void addFile(File file)
file to SCM index.
{@link - ScmException} if working file does not exist or is
not accessible.
void addDirectory(File directory,
boolean recursive)
directory to SCM repository. The
recursive option sets if also its children will be added to
index.
{@link - ScmException} if working directory does not exist
or is not accessible.
CommitRef commitFile(File file,
String comment)
file to SCM repository. The comment
parameter adds message to given commit. Reference to commit in SCM is returned as instance of CommitRef.
CommitRef
{@link - ScmException} if working file does not exist or is
not accessible.
CommitRef commitDirectory(File directory,
String comment,
boolean recursive)
directory to SCM repository. The
comment parameter adds message to given commit. The
recursive option sets if also changes for its children will be
committed. Reference to commit in SCM is returned as instance of CommitRef.
CommitRef
{@link - ScmException} if working directory does not exist
or is not accessible.
void checkoutFile(String path,
CommitRef id,
File directory)
path
and commit-ref id into working directory.
{@link - ScmException} if working directory is not
accessible or can not be created.
void checkoutDirectory(String path,
CommitRef id,
boolean recursive,
File directory)
path and
commit-ref id into newly created working directory. To
get also all children use recursive option.
{@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 | ||||||||