createDefaultAuthenticationManager
public static ISVNAuthenticationManager createDefaultAuthenticationManager()
Creates a default authentication manager that uses the default SVN's
servers configuration and authentication storage. Whether the
default auth storage is used or not depends on the 'store-auth-creds'
option that can be found in the SVN's config file under the
[auth] section.
- a default implementation of the credentials and servers
configuration driver interface
createDefaultAuthenticationManager
public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir)
Creates a default authentication manager that uses the servers
configuration and authentication storage located in the provided
directory. The authentication storage is enabled.
configDir - a new location of the run-time configuration area
- a default implementation of the credentials and servers
configuration driver interface
createDefaultAuthenticationManager
public static ISVNAuthenticationManager createDefaultAuthenticationManager(File configDir,
String userName,
String password) Creates a default authentication manager that uses the provided
configuration directory and user's credentials. Whether the default auth
storage is used or not depends on the 'store-auth-creds' option that
is looked up in the config file under the [auth] section.
Files config and servers will be created (if they still
don't exist) in the specified directory (they are the same as those ones
you can find in the default SVN's run-time configuration area).
configDir - a new location of the run-time configuration areauserName - a user's namepassword - a user's password
- a default implementation of the credentials and servers
configuration driver interface
createDefaultAuthenticationManager
public 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. The
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 disabled
- a default implementation of the credentials and servers
configuration driver interface
createDefaultAuthenticationManager
public 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. The
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 disabled
- a default implementation of the credentials and servers
configuration driver interface
createDefaultAuthenticationManager
public 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. Whether
the default auth storage is used or not depends on the 'store-auth-creds'
option that can be found in the SVN's config file under the
[auth] section.
userName - a user's namepassword - a user's password
- a default implementation of the credentials and servers
configuration driver interface
createDefaultOptions
public static ISVNOptions createDefaultOptions(File dir,
boolean readonly) Creates a default run-time configuration options driver that uses the
provided configuration directory.
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 writing
- a default implementation of the run-time configuration options
driver interface
createDefaultOptions
public static ISVNOptions createDefaultOptions(boolean readonly)
Creates a default run-time configuration options driver that uses the
default SVN's 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
- a default implementation of the run-time configuration options
driver interface
getDefaultConfigurationDirectory
public static File getDefaultConfigurationDirectory()
Gets the location of the default SVN's run-time configuration area on the
current machine. The result path depends on the platform on which SVNKit
is running:
- on Windows this path usually looks like 'Documents and
Settings\UserName\Subversion' or simply '%APPDATA%\Subversion'.
- on a Unix-like platform - '~/.subversion'.
- a
File representation of the default SVN's
run-time configuration area location
getWorkingCopyRoot
public static File getWorkingCopyRoot(File versionedDir,
boolean stopOnExtenrals)
throws SVNException Returns the Working Copy root directory given a versioned directory that
belongs to the Working Copy.
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
forstopOnExtenrals - if true then this method
will stop at the directory on which any externals definitions
are set
- the WC root directory (if it is found) or null.
isVersionedDirectory
public static boolean isVersionedDirectory(File dir)
Determines if a directory is under version control.
dir - a directory to check
- true if versioned, otherwise
false
isWorkingCopyRoot
public static boolean isWorkingCopyRoot(File versionedDir)
throws SVNException Determines if a directory is the root of the Working Copy.
versionedDir - a versioned directory to check
- true if
versionedDir is versioned and the WC root (or the
root of externals if considerExternalAsRoot is
true), otherwise false
isWorkingCopyRoot
public static boolean isWorkingCopyRoot(File versionedDir,
boolean externalIsRoot)
throws SVNExceptionuse isWorkingCopyRoot(File)} instead
versionedDir - a versioned directory to checkexternalIsRoot -
- true if
versionedDir is versioned and the WC root (or the
root of externals if considerExternalAsRoot is
true), otherwise false