the only one boolean parameter -
readonly - enables ISVNOptions options = SVNWCUtil.createDefaultOptions(
true); SVNClientManager clientManager = SVNClientManager.newInstance(options,
"name",
"password"); ...
If you would like to have the default configuration area in a place different from the SVN default one, you should provide a preferred path to the config directory like this:
import org.tmatesoft.svn.core.wc.ISVNOptions; import org.tmatesoft.svn.core.wc.SVNClientManager; ... File defaultConfigDir = new File("way/to/your/config/dir"); ISVNOptions options = SVNWCUtil.createDefaultOptions(defaultConfigDir, true); SVNClientManager clientManager = SVNClientManager.newInstance(options, "name", "password"); ...
In this case in the specified directory SVNKit will create necessary configuration files (in particular
config and
servers) which are absolutely identical to those
default ones (without any user's edits) located in the SVN config area.
Read also this Subversion book chapter on runtime configuration area.
@version 1.3
@author TMate Software Ltd.
@since 1.2
@see SVNWCUtil
@see Examples