public class SVNWCUtil
extends java.lang.Object
ISVNOptions
,
ExamplesConstructor and Description |
---|
SVNWCUtil() |
Modifier and Type | Method and Description |
---|---|
static ISVNAuthenticationManager |
createDefaultAuthenticationManager()
Creates a default authentication manager that uses the default SVN's
servers configuration and authentication storage.
|
static ISVNAuthenticationManager |
createDefaultAuthenticationManager(java.io.File configDir)
Creates a default authentication manager that uses the servers
configuration and authentication storage located in the provided
directory.
|
static ISVNAuthenticationManager |
createDefaultAuthenticationManager(java.io.File configDir,
java.lang.String userName,
java.lang.String password)
Creates a default authentication manager that uses the provided
configuration directory and user's credentials.
|
static ISVNAuthenticationManager |
createDefaultAuthenticationManager(java.io.File configDir,
java.lang.String userName,
java.lang.String password,
boolean storeAuth)
Creates a default authentication manager that uses the provided
configuration directory and user's credentials.
|
static ISVNAuthenticationManager |
createDefaultAuthenticationManager(java.io.File configDir,
java.lang.String userName,
java.lang.String password,
java.io.File privateKey,
java.lang.String passphrase,
boolean storeAuth)
Creates a default authentication manager that uses the provided
configuration directory and user's credentials.
|
static ISVNAuthenticationManager |
createDefaultAuthenticationManager(java.lang.String userName,
java.lang.String password)
Creates a default authentication manager that uses the default SVN's
servers configuration and provided user's credentials.
|
static DefaultSVNOptions |
createDefaultOptions(boolean readonly)
Creates a default run-time configuration options driver that uses the
default SVN's run-time configuration area.
|
static DefaultSVNOptions |
createDefaultOptions(java.io.File dir,
boolean readonly)
Creates a default run-time configuration options driver that uses the
provided configuration directory.
|
static java.io.File |
getDefaultConfigurationDirectory()
Gets the location of the default SVN's run-time configuration area on the
current machine.
|
static java.io.File |
getWorkingCopyRoot(java.io.File versionedDir,
boolean stopOnExternals)
Returns the Working Copy root directory given a versioned directory that
belongs to the Working Copy.
|
static boolean |
isEclipseKeyringSupported() |
static boolean |
isVersionedDirectory(java.io.File dir)
Determines if a directory is under version control.
|
static boolean |
isWorkingCopyRoot(java.io.File versionedDir)
Determines if a directory is the root of the Working Copy.
|
static boolean |
isWorkingCopyRoot(java.io.File versionedDir,
boolean externalIsRoot)
Deprecated.
use
isWorkingCopyRoot(File) } instead |
public static java.io.File getDefaultConfigurationDirectory()
File
representation of the default SVN's
run-time configuration area locationpublic static ISVNAuthenticationManager createDefaultAuthenticationManager()
getDefaultConfigurationDirectory()
public static ISVNAuthenticationManager createDefaultAuthenticationManager(java.io.File configDir)
configDir
- a new location of the run-time configuration areapublic static ISVNAuthenticationManager createDefaultAuthenticationManager(java.lang.String userName, java.lang.String password)
userName
- a user's namepassword
- a user's passwordpublic static ISVNAuthenticationManager createDefaultAuthenticationManager(java.io.File configDir, java.lang.String userName, java.lang.String password)
configDir
- a new location of the run-time configuration areauserName
- a user's namepassword
- a user's passwordpublic static ISVNAuthenticationManager createDefaultAuthenticationManager(java.io.File configDir, java.lang.String userName, java.lang.String password, boolean storeAuth)
storeAuth
parameter affects on using the auth storage.configDir
- a new location of the run-time configuration areauserName
- a user's namepassword
- a user's passwordstoreAuth
- if true then the auth
storage is enabled, otherwise disabledpublic static ISVNAuthenticationManager createDefaultAuthenticationManager(java.io.File configDir, java.lang.String userName, java.lang.String password, java.io.File privateKey, java.lang.String passphrase, boolean storeAuth)
storeAuth
parameter affects on using the auth storage.configDir
- a new location of the run-time configuration areauserName
- a user's namepassword
- a user's passwordprivateKey
- a private key file for SSH sessionpassphrase
- a passphrase that goes with the key filestoreAuth
- if true then the auth
storage is enabled, otherwise disabledpublic static DefaultSVNOptions createDefaultOptions(java.io.File dir, boolean readonly)
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.
dir
- a new location of the run-time configuration areareadonly
- if true then run-time
configuration options are available only for reading, if false then those options are
available for both reading and writingpublic static DefaultSVNOptions createDefaultOptions(boolean readonly)
readonly
- if true then run-time
configuration options are available only for reading, if false then those options are
available for both reading and writinggetDefaultConfigurationDirectory()
public static boolean isVersionedDirectory(java.io.File dir)
dir
- a directory to checkpublic static boolean isWorkingCopyRoot(java.io.File versionedDir) throws SVNException
versionedDir
- a versioned directory to checkversionedDir
is versioned and the WC root (or the
root of externals if considerExternalAsRoot
is
true), otherwise falseSVNException
public static boolean isWorkingCopyRoot(java.io.File versionedDir, boolean externalIsRoot) throws SVNException
isWorkingCopyRoot(File)
} insteadversionedDir
- a versioned directory to checkexternalIsRoot
- versionedDir
is versioned and the WC root (or the
root of externals if considerExternalAsRoot
is
true), otherwise falseSVNException
public static java.io.File getWorkingCopyRoot(java.io.File versionedDir, boolean stopOnExternals) throws SVNException
If both versionedDir and its parent directory are not versioned this method returns null.
versionedDir
- a directory belonging to the WC which root is to be searched
forstopOnExternals
- if true then this method
will stop at the directory on which any externals definitions
are setSVNException
public static boolean isEclipseKeyringSupported()
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.