org.tmatesoft.svn.core.wc
public class SVNWCUtil extends Object
Version: 1.1.1
See Also: ISVNOptions Examples
Method Summary | |
---|---|
static ISVNAuthenticationManager | createDefaultAuthenticationManager()
Creates a default authentication manager that uses the default SVN's
servers configuration and authentication storage. |
static ISVNAuthenticationManager | createDefaultAuthenticationManager(File configDir)
Creates a default authentication manager that uses the servers
configuration and authentication storage located in the provided
directory. |
static ISVNAuthenticationManager | createDefaultAuthenticationManager(String userName, String password)
Creates a default authentication manager that uses the default SVN's
servers configuration and provided user's credentials. |
static ISVNAuthenticationManager | createDefaultAuthenticationManager(File configDir, String userName, String password)
Creates a default authentication manager that uses the provided
configuration directory and user's credentials. |
static ISVNAuthenticationManager | createDefaultAuthenticationManager(File configDir, String userName, String password, boolean storeAuth)
Creates a default authentication manager that uses the provided
configuration directory and user's credentials. |
static ISVNAuthenticationManager | createDefaultAuthenticationManager(File configDir, String userName, String password, File privateKey, String passphrase, boolean storeAuth)
Creates a default authentication manager that uses the provided
configuration directory and user's credentials. |
static ISVNOptions | createDefaultOptions(File dir, boolean readonly)
Creates a default run-time configuration options driver that uses the
provided configuration directory.
|
static ISVNOptions | createDefaultOptions(boolean readonly)
Creates a default run-time configuration options driver that uses the
default SVN's run-time configuration area.
|
static File | getDefaultConfigurationDirectory()
Gets the location of the default SVN's run-time configuration area on the
current machine. |
static File | getWorkingCopyRoot(File versionedDir, boolean stopOnExtenrals)
Returns the Working Copy root directory given a versioned directory that
belongs to the Working Copy.
|
static boolean | isVersionedDirectory(File dir)
Determines if a directory is under version control.
|
static boolean | isWorkingCopyRoot(File versionedDir)
Determines if a directory is the root of the Working Copy.
|
static boolean | isWorkingCopyRoot(File versionedDir, boolean externalIsRoot) |
Returns: a default implementation of the credentials and servers configuration driver interface
See Also: getDefaultConfigurationDirectory
Parameters: configDir a new location of the run-time configuration area
Returns: a default implementation of the credentials and servers configuration driver interface
Parameters: userName a user's name password a user's password
Returns: a default implementation of the credentials and servers configuration driver interface
Parameters: configDir a new location of the run-time configuration area userName a user's name password a user's password
Returns: a default implementation of the credentials and servers configuration driver interface
storeAuth
parameter affects on using the auth storage.
Parameters: configDir a new location of the run-time configuration area userName a user's name password a user's password storeAuth if true then the auth storage is enabled, otherwise disabled
Returns: a default implementation of the credentials and servers configuration driver interface
storeAuth
parameter affects on using the auth storage.
Parameters: configDir a new location of the run-time configuration area userName a user's name password a user's password privateKey a private key file for SSH session passphrase a passphrase that goes with the key file storeAuth if true then the auth storage is enabled, otherwise disabled
Returns: a default implementation of the credentials and servers configuration driver interface
If dir
is not null then
all necessary config files (in particular config and servers)
will be created in this directory if they still don't exist. Those files
are the same as those ones you can find in the default SVN's run-time
configuration area.
Parameters: dir a new location of the run-time configuration area readonly if true then run-time configuration options are available only for reading, if false then those options are available for both reading and writing
Returns: a default implementation of the run-time configuration options driver interface
Parameters: readonly if true then run-time configuration options are available only for reading, if false then those options are available for both reading and writing
Returns: a default implementation of the run-time configuration options driver interface
See Also: getDefaultConfigurationDirectory
Returns: a java.io.File representation of the default SVN's run-time configuration area location
If both versionedDir and its parent directory are not versioned this method returns null.
Parameters: versionedDir a directory belonging to the WC which root is to be searched for stopOnExtenrals if true then this method will stop at the directory on which any externals definitions are set
Returns: the WC root directory (if it is found) or null.
Throws: SVNException
Parameters: dir a directory to check
Returns: true if versioned, otherwise false
Parameters: versionedDir a versioned directory to check
Returns: true if
versionedDir
is versioned and the WC root (or the
root of externals if considerExternalAsRoot
is
true), otherwise false
Throws: SVNException
Since: 1.1
Deprecated: use isWorkingCopyRoot} instead
Parameters: versionedDir a versioned directory to check externalIsRoot
Returns: true if
versionedDir
is versioned and the WC root (or the
root of externals if considerExternalAsRoot
is
true), otherwise false
Throws: SVNException