|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Runner classes are adapters to native commands on a version control system.
Method Summary | |
void |
add(Module module,
java.io.File[] files,
java.io.File[] dirs)
Adds a set of files and/or a set of directories (recursively) to the version control system. |
void |
add(Module module,
java.lang.String[] files,
java.lang.String[] dirs)
See add(Module, File[], File[]) . |
void |
addModule(Module module,
java.lang.String comment)
|
void |
checkout(Module module)
Checks out a module from a version control system. |
void |
checkout(Module module,
DevelopmentLine developmentLine,
Version version)
Checks out a module from a version control system with the specified version and from a development
line. |
void |
checkout(Module module,
Version version)
Checks out a module from a version control system with the specified version . |
void |
commit(java.io.File file)
Commits file in the version control system. |
void |
createPatchLine(Module module)
Creates a PatchLine |
boolean |
existsInRepository(Module module)
Checks if a module exists in the repository. |
boolean |
hasPatchLine(Module module)
Checks if the module has a PatchLine in the version control system. |
void |
promote(Module module,
java.lang.String comment,
Version version)
|
void |
setCommandResponse(CommandResponse response)
|
void |
update(Module module)
Updates an already checked out module. |
void |
update(Module module,
DevelopmentLine developmentLine,
Version version)
|
void |
update(Module module,
Version version)
Updates an already checked out module to a specified version . |
Method Detail |
public void setCommandResponse(CommandResponse response)
public void commit(java.io.File file) throws VersionControlException
file
in the version control system. If file
is not yet under version control it
will be added.
VersionControlException
- Exceptions related to version control operations.public void add(Module module, java.io.File[] files, java.io.File[] dirs) throws VersionControlException
module
- The module to which the files apply.files
- The filenames that should be added to the version control system repository.dirs
- The directory-paths that should be added to the version control system repository.
VersionControlException
- Exceptions related to version control operations.public void add(Module module, java.lang.String[] files, java.lang.String[] dirs) throws VersionControlException
add(Module, File[], File[])
. This method converts the String
items to File
items.
module
- The context module to which the files should be added.files
- Files to be added (each String
will be added relative to the module base directory).dirs
- Directories to be added (each String
will be added relative to the module base directory).
VersionControlException
- Exceptions related to version control operations.public void checkout(Module module) throws VersionControlException
module
- The module that should be checked out of the version control repository.
VersionControlException
- Exceptions related to version control operations.public void checkout(Module module, Version version) throws VersionControlException
version
. The module is checked
out relative to Manifest.getModuleBaseDirectory()
.
module
- The module that should be checked out from the version control system.version
- The version of the module that should be checked out.
VersionControlException
- Exceptions related to version control operations.public void checkout(Module module, DevelopmentLine developmentLine, Version version) throws VersionControlException
version
and from a development
line. The module is checked out relative to
Manifest.getModuleBaseDirectory()
.
module
- The module that should be checked out from the version control system.developmentLine
- The development line for the module.version
- The version of the module that should be checked out.
VersionControlException
- Exceptions related to version control operations.public void update(Module module) throws VersionControlException
module
- The module that should be updated.
VersionControlException
- Exceptions related to version control operations.public void update(Module module, Version version) throws VersionControlException
version
.
module
- The module that should be updated.version
- The version to which the the module should be updated,
VersionControlException
- Exceptions related to version control operations.public void promote(Module module, java.lang.String comment, Version version) throws VersionControlException
module
- comment
- Comment of the developerversion
-
VersionControlException
public boolean existsInRepository(Module module)
module.info
file.
module
-
true
if the module exists, false
otherwise.public boolean hasPatchLine(Module module)
PatchLine
in the version control system.
module
-
public void createPatchLine(Module module) throws VersionControlException
PatchLine for the module.
- Throws:
VersionControlException
public void addModule(Module module, java.lang.String comment) throws VersionControlException
VersionControlException
public void update(Module module, DevelopmentLine developmentLine, Version version) throws CVSException
CVSException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |