|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.toolforge.karma.core.vc.svnimpl.SubversionRunner
// TODO Lots of todo's, subversion implementation
Constructor Summary | |
SubversionRunner(Location location)
|
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 . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubversionRunner(Location location) throws CVSException
Method Detail |
public void update(Module module, DevelopmentLine developmentLine, Version version) throws CVSException
update
in interface Runner
CVSException
public void commit(java.io.File file) throws VersionControlException
Runner
file
in the version control system. If file
is not yet under version control it
will be added.
commit
in interface Runner
VersionControlException
- Exceptions related to version control operations.public void addModule(Module module, java.lang.String comment) throws CVSException
addModule
in interface Runner
CVSException
public void setCommandResponse(CommandResponse response)
setCommandResponse
in interface Runner
public void add(Module module, java.io.File[] files, java.io.File[] dirs) throws VersionControlException
Runner
add
in interface Runner
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
Runner
Runner.add(Module, File[], File[])
. This method converts the String
items to File
items.
add
in interface Runner
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
Runner
checkout
in interface Runner
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
Runner
version
. The module is checked
out relative to Manifest.getModuleBaseDirectory()
.
checkout
in interface Runner
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
Runner
version
and from a development
line. The module is checked out relative to
Manifest.getModuleBaseDirectory()
.
checkout
in interface Runner
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
Runner
update
in interface Runner
module
- The module that should be updated.
VersionControlException
- Exceptions related to version control operations.public void update(Module module, Version version) throws VersionControlException
Runner
version
.
update
in interface Runner
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
promote
in interface Runner
module
- comment
- Comment of the developerversion
-
VersionControlException
public boolean existsInRepository(Module module)
Runner
module.info
file.
existsInRepository
in interface Runner
module
-
true
if the module exists, false
otherwise.public boolean hasPatchLine(Module module)
Runner
PatchLine
in the version control system.
hasPatchLine
in interface Runner
module
-
public void createPatchLine(Module module) throws VersionControlException
Runner
PatchLine for the module.
- Specified by:
createPatchLine
in interface Runner
- Throws:
VersionControlException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |