| java.lang.Object org.antmod.scm.impl.SvnSystemImpl
SvnSystemImpl | public class SvnSystemImpl implements ScmSystem(Code) | | Subversion repository provider, providing access to this
compelling Source Configuration Management alternative for CVS.
This Subversion repository provider is a thin layer on top
of the "svn" commandline executable, and as such
requires the "svn" executable to be in the PATH
of the system.
author: Klaas Waslander |
Constructor Summary | |
public | SvnSystemImpl() Public default onstructor. |
Method Summary | |
public String | createBranchInTrunk(ScmVersion newBranchForModule) Creates a new branch in the trunk 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) Implements Subversion checkout of a module. | 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 Subversion. | public void | doExport(String moduleName, File destDir, ScmVersion version, boolean reallyQuiet) Implements Subversion export of a module. | public void | doMerge(File moduleDir, ScmVersion version) | public void | doMerge(File moduleDir, ScmVersion version, boolean reallyQuiet) | public void | doUpdate(File file, ScmVersion version) | public ScmDifference[] | getDifferences(ScmVersion version1, ScmVersion version2) Returns the files that have changed between the two given Subversion versions. | 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 ScmVersion | getLocalVersion(String moduleName, File moduleDir) | 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 | parseSvnPath(String moduleName, String svnPath) | static String | renderSvnPath(String moduleName, ScmVersion ver) | static String | renderUrlToSvnArg(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) | | |
SvnSystemImpl | public SvnSystemImpl()(Code) | | Public default onstructor.
|
createBranchInTrunk | public String createBranchInTrunk(ScmVersion newBranchForModule)(Code) | | Creates a new branch in the trunk of the given module.
|
doAdd | public void doAdd(File file, boolean recursive)(Code) | | |
doCheckout | public void doCheckout(String moduleName, File destDir, ScmVersion version, boolean reallyQuiet)(Code) | | Implements Subversion checkout of a module.
|
doCommit | public void doCommit(File file, String message)(Code) | | Commit the given file or a while directory to Subversion.
Parameters: file - |
doExport | public void doExport(String moduleName, File destDir, ScmVersion version, boolean reallyQuiet)(Code) | | Implements Subversion export of a module.
|
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 |
|
|