public class SvnWcTools
extends java.lang.Object
| Constructor and Description |
|---|
SvnWcTools() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
execute(java.lang.String... args)
Execute a SVN command through a CLI.
|
static long |
getCommitRevision(org.tmatesoft.svn.core.wc.SVNStatus status) |
static org.tmatesoft.svn.core.wc.SVNInfo |
getInfo(java.lang.String file)
Get SVN info for file.
|
static java.util.List<org.tmatesoft.svn.core.wc.SVNInfo> |
getInfo(java.lang.String file,
boolean recursive) |
static org.magicwerk.brownies.collections.IList<org.tmatesoft.svn.core.SVNLogEntry> |
getLogEntries(java.lang.String file)
Returns information about log information about all commits.
|
static org.tmatesoft.svn.core.SVNLogEntry |
getLogEntries(java.lang.String file,
long rev) |
static java.lang.String |
getPropertyAsString(java.lang.String file,
java.lang.String property) |
static org.tmatesoft.svn.core.SVNPropertyValue |
getPropertyValue(java.lang.String file,
java.lang.String property) |
static long |
getRevision(org.tmatesoft.svn.core.wc.SVNStatus status) |
static org.tmatesoft.svn.core.wc.SVNStatus |
getStatus(java.lang.String file)
Returns status of item in working copy.
|
static org.tmatesoft.svn.core.wc.SVNStatusType |
getStatusType(java.lang.String file)
Returns commit status of item in working copy.
|
static org.tmatesoft.svn.core.wc.SVNStatusType |
getStatusType(org.tmatesoft.svn.core.wc.SVNStatus status) |
static org.magicwerk.brownies.collections.IList<org.tmatesoft.svn.core.wc.SVNStatus> |
getSvnStatusList(java.lang.String dir,
boolean recursive)
Returns status of items in directory of working copy.
|
static boolean |
hasProperty(java.lang.String file,
java.lang.String property) |
static boolean |
isVersioned(java.lang.String file)
Returns true if the item is known by the SVN working copy.
|
public static boolean execute(java.lang.String... args)
args - command line argumentspublic static boolean hasProperty(java.lang.String file,
java.lang.String property)
file - file nameproperty - property namepublic static java.lang.String getPropertyAsString(java.lang.String file,
java.lang.String property)
file - file nameproperty - property namepublic static org.tmatesoft.svn.core.SVNPropertyValue getPropertyValue(java.lang.String file,
java.lang.String property)
file - file nameproperty - property namepublic static boolean isVersioned(java.lang.String file)
file - file pathpublic static org.magicwerk.brownies.collections.IList<org.tmatesoft.svn.core.SVNLogEntry> getLogEntries(java.lang.String file)
file - file pathpublic static org.tmatesoft.svn.core.SVNLogEntry getLogEntries(java.lang.String file,
long rev)
public static org.tmatesoft.svn.core.wc.SVNInfo getInfo(java.lang.String file)
file - path to filepublic static java.util.List<org.tmatesoft.svn.core.wc.SVNInfo> getInfo(java.lang.String file,
boolean recursive)
public static org.tmatesoft.svn.core.wc.SVNStatus getStatus(java.lang.String file)
file - file pathpublic static org.tmatesoft.svn.core.wc.SVNStatusType getStatusType(java.lang.String file)
file - file pathpublic static org.tmatesoft.svn.core.wc.SVNStatusType getStatusType(org.tmatesoft.svn.core.wc.SVNStatus status)
public static long getCommitRevision(org.tmatesoft.svn.core.wc.SVNStatus status)
public static long getRevision(org.tmatesoft.svn.core.wc.SVNStatus status)
public static org.magicwerk.brownies.collections.IList<org.tmatesoft.svn.core.wc.SVNStatus> getSvnStatusList(java.lang.String dir,
boolean recursive)
dir - dir pathrecursive - true to recurse into subdirectories