|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.gate.versioning.cmdline.AbstractRepository
java.gate.versioning.cmdline.SvnRepository
class SvnRepository extends AbstractRepository
SVN repository implementation. The public API of this class is documented on the Repository interface.
Field Summary | |
---|---|
private boolean |
DEBUG
Debug flag. |
Fields inherited from class AbstractRepository | |
---|---|
DEBUG, commandOutput, nl, root, stderrOutput, stdoutOutput, workingDir |
Constructor Summary | |
SvnRepository()
|
Method Summary | |
---|---|
boolean
|
add(String fileName)
Add to the repository. |
boolean
|
checkin(String fileName, String message)
Commit changes. |
boolean
|
create(String dirName)
Create a new repository filetree (i.e. not a new object but a new database/filesystem on disk). |
boolean
|
delete(String fileName)
Delete from the repository. |
String
|
diff(String fileName)
Get the difference with the repository version. |
boolean
|
exists(String moduleName)
Check for the existence of a module (i.e. top-level directory). |
String
|
getCommandName()
Returns "svn". |
protected List
|
getPostCommand(String fileName, boolean noRoot)
Get the post-subcommand elements of the command (e.g. root). |
protected List
|
getPreCommand()
Get the pre-subcommand elements of the command (e.g. |
boolean
|
importDir(String dirName)
Import a directory. |
boolean
|
isModified(String fileName)
Use the repository's status command to figure out if the file has been locally modified. |
boolean
|
isOutOfDate(String fileName)
Use the repository's status command to figure out if the file is out-of-date. |
boolean
|
isUnknown(String fileName)
Use the repository's status command to figure out if the file is unknown. |
void
|
setRoot(String root)
The root / URL of the repository. |
String
|
status(String fileName)
Status. |
boolean
|
update(String fileName)
Update. |
Methods inherited from class AbstractRepository | |
---|---|
add, buildCommandArray, buildCommandArray, checkin, checkin, checkout, delete, diff, getCommandName, getCommandOutput, getCommandStderr, getCommandStdout, getPostCommand, getPreCommand, getRepository, getRoot, init, runCommand, runCommand, setRoot, setWorkingDir, status, update |
Field Detail |
---|
private boolean DEBUG
Constructor Detail |
---|
SvnRepository()
Method Detail |
---|
public boolean add(String fileName)
public boolean checkin(String fileName, String message)
public boolean create(String dirName)
public boolean delete(String fileName)
public String diff(String fileName)
public boolean exists(String moduleName)
public String getCommandName()
protected List getPostCommand(String fileName, boolean noRoot)
protected List getPreCommand()
public boolean importDir(String dirName)
public boolean isModified(String fileName)
public boolean isOutOfDate(String fileName)
public boolean isUnknown(String fileName)
public void setRoot(String root)
public String status(String fileName)
public boolean update(String fileName)
Groovy Documentation