| java.lang.Object org.antmod.scm.impl.CvsSystemImpl
CvsSystemImpl | public class CvsSystemImpl implements ScmSystem(Code) | | CVS repository provider, providing access to CVS
repositories from Antmod.
This CVS repository provider is a thin layer on top
of the "cvs" commandline executable, and as such
requires the "cvs" executable to be in the PATH
of the system.
author: Klaas Waslander |
Constructor Summary | |
public | CvsSystemImpl() Public default onstructor. |
Method Summary | |
static void | addCvsRevisionCommand(ScmVersion version, ArrayList commandList) Constructs the correct Cvs command line options for a module's revision. | static String | constructCvsRevisionCommand(ScmVersion version) | static int | countVersionChars(char c, String s) Utility method for counting the number of given characters in the given string. | public String | createBranchInTrunk(ScmVersion newBranchForModule) Creates a new branch in the HEAD of the given module. | public String | createTagInBranch(ScmVersion existingBranch, ScmVersion newTag) Creates a new tag in the given BRANCH of the given module. | public void | doAdd(File file, boolean recursive) | public void | doCheckout(String moduleName, File destDir, ScmVersion version, boolean reallyQuiet) | public void | doCheckoutOrUpdate(String packageName, File destDir, ScmVersion version, boolean reallyQuiet) | public void | doCommit(File file, String message) Commit the given file or a while directory to CVS. | public void | doExport(String moduleName, File destDir, ScmVersion version, boolean reallyQuiet) | public void | doMerge(File moduleDir, ScmVersion version) | public void | doMerge(File moduleDir, ScmVersion version, boolean reallyQuiet) | public void | doUpdate(File file, ScmVersion version) | public void | doUpdate(String packageName, File file, ScmVersion version, boolean reallyQuiet) | public ScmDifference[] | getDifferences(ScmVersion version1, ScmVersion version2) Returns the files that have changed between the two given cvs revisions. | public String | getErrorOutput() | public ScmVersion | getLatestVersion(File moduleDir) If the given module directory is not a tag, returns the latest version for that directory. | public ScmVersion | getLocalVersion(File moduleDir) Returns the currently checked out version of the module in the given directory. | public String | getRevisionNumber(File file) Returns the latest file revision. | public String | getStandardOutput() | public ScmUrl | getUrl() | public ScmVersion[] | getVersionsInBranch(File file, ScmVersion branch) Returns all available versions for the given file in the given branch,
with the newest number first and the oldest number last (oldest is usually the ".0" version). | public boolean | isCheckoutDir(File directory) | public boolean | isUpToDate(File checkoutDir) Check whether the given checkout directory is up-to-date
when comparing it to the repository contents. | static ScmVersion | parseCvsRevision(String moduleName, String versionString) | static String | renderCvsRevision(ScmVersion ver) | static String | renderUrlToCvsRoot(ScmUrl url) | public void | setUrl(ScmUrl providerUrl) |
REVISION_NAME_SEPARATOR | final public static char REVISION_NAME_SEPARATOR(Code) | | |
REVISION_VERSION_SEPARATOR | final public static char REVISION_VERSION_SEPARATOR(Code) | | |
CvsSystemImpl | public CvsSystemImpl()(Code) | | Public default onstructor.
|
addCvsRevisionCommand | static void addCvsRevisionCommand(ScmVersion version, ArrayList commandList)(Code) | | Constructs the correct Cvs command line options for a module's revision.
This is useful for Cvs checkout and update commands.
Parameters: packageName - Parameters: revision - |
countVersionChars | static int countVersionChars(char c, String s)(Code) | | Utility method for counting the number of given characters in the given string.
|
createBranchInTrunk | public String createBranchInTrunk(ScmVersion newBranchForModule)(Code) | | Creates a new branch in the HEAD of the given module.
|
doAdd | public void doAdd(File file, boolean recursive)(Code) | | |
doCommit | public void doCommit(File file, String message)(Code) | | Commit the given file or a while directory to CVS.
Parameters: file - |
getLatestVersion | public ScmVersion getLatestVersion(File moduleDir)(Code) | | If the given module directory is not a tag, returns the latest version for that directory.
null if no latest version is found |
getRevisionNumber | public String getRevisionNumber(File file)(Code) | | Returns the latest file revision.
|
getVersionsInBranch | public ScmVersion[] getVersionsInBranch(File file, ScmVersion branch)(Code) | | Returns all available versions for the given file in the given branch,
with the newest number first and the oldest number last (oldest is usually the ".0" version).
|
isCheckoutDir | public boolean isCheckoutDir(File directory)(Code) | | |
isUpToDate | public boolean isUpToDate(File checkoutDir)(Code) | | Check whether the given checkout directory is up-to-date
when comparing it to the repository contents.
Parameters: checkoutDir - The directory with locally checked out contents Whether the checkoutDir is up-to-date |
|
|