public DefaultSVNOptions getDefaultOptions() { if (myDefaultOptions == null) { myDefaultOptions = new DefaultSVNOptions(myConfigDirectory, true); } return myDefaultOptions; }
public ISVNOptions getOptions() { if (myOptions == null) { myOptions = new DefaultSVNOptions(); } return myOptions; }
protected ISVNOptions getOptions(){ if (myOptions == null){ myOptions = new DefaultSVNOptions(); } return myOptions; }
public ISVNOptions getOptions() { if (myOptions == null) { myOptions = new DefaultSVNOptions(); } return myOptions; }
public ISVNOptions getOptions() { if (myOptions == null) { myOptions = new DefaultSVNOptions(); } return myOptions; }
protected ISVNOptions getOptions(){ if (myOptions == null){ myOptions = new DefaultSVNOptions(); } return myOptions; }
protected ISVNOptions getOptions(){ if (myOptions == null){ myOptions = new DefaultSVNOptions(); } return myOptions; }
public ISVNOptions getOptions() { if (myOptions == null) { myOptions = new DefaultSVNOptions(); } return myOptions; }
/** * Creates a default run-time configuration options driver that uses the * default SVN's run-time configuration area. * * @param readonly * if <span class="javakeyword">true</span> then run-time * configuration options are available only for reading, if <span * class="javakeyword">false</span> then those options are * available for both reading and writing * @return a default implementation of the run-time configuration options * driver interface * @see #getDefaultConfigurationDirectory() */ public static DefaultSVNOptions createDefaultOptions(boolean readonly) { return new DefaultSVNOptions(null, readonly); }
/** * Creates a default run-time configuration options driver that uses * the default SVN's run-time configuration area. * * @param readonly if <span class="javakeyword">true</span> then * run-time configuration options are available only * for reading, if <span class="javakeyword">false</span> * then those options are available for both reading * and writing * @return a default implementation of the run-time * configuration options driver interface * @see #getDefaultConfigurationDirectory() */ public static ISVNOptions createDefaultOptions(boolean readonly) { return new DefaultSVNOptions(null, readonly); }
/** * Creates a default run-time configuration options driver that uses the * default SVN's run-time configuration area. * * @param readonly * if <span class="javakeyword">true</span> then run-time * configuration options are available only for reading, if <span * class="javakeyword">false</span> then those options are * available for both reading and writing * @return a default implementation of the run-time configuration options * driver interface * @see #getDefaultConfigurationDirectory() */ public static DefaultSVNOptions createDefaultOptions(boolean readonly) { return new DefaultSVNOptions(null, readonly); }
/** * Creates a default run-time configuration options driver that uses the * default SVN's run-time configuration area. * * @param readonly * if <span class="javakeyword">true</span> then run-time * configuration options are available only for reading, if <span * class="javakeyword">false</span> then those options are * available for both reading and writing * @return a default implementation of the run-time configuration options * driver interface * @see #getDefaultConfigurationDirectory() */ public static DefaultSVNOptions createDefaultOptions(boolean readonly) { return new DefaultSVNOptions(null, readonly); }
/** * Creates a default run-time configuration options driver that uses * the provided configuration directory. * * <p> * If <code>dir</code> is not <span class="javakeyword">null</span> * then all necessary config files (in particular <i>config</i> and * <i>servers</i>) 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. * * @param dir a new location of the run-time configuration * area * @param readonly if <span class="javakeyword">true</span> then * run-time configuration options are available only * for reading, if <span class="javakeyword">false</span> * then those options are available for both reading * and writing * @return a default implementation of the run-time * configuration options driver interface */ public static ISVNOptions createDefaultOptions(File dir, boolean readonly) { return new DefaultSVNOptions(dir, readonly); }
/** * Creates a default run-time configuration options driver that uses the * provided configuration directory. * * <p> * If <code>dir</code> is not <span class="javakeyword">null</span> then * all necessary config files (in particular <i>config</i> and <i>servers</i>) * 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. * * @param dir * a new location of the run-time configuration area * @param readonly * if <span class="javakeyword">true</span> then run-time * configuration options are available only for reading, if <span * class="javakeyword">false</span> then those options are * available for both reading and writing * @return a default implementation of the run-time configuration options * driver interface */ public static DefaultSVNOptions createDefaultOptions(File dir, boolean readonly) { return new DefaultSVNOptions(dir, readonly); }
/** * Creates a default run-time configuration options driver that uses the * provided configuration directory. * * <p> * If <code>dir</code> is not <span class="javakeyword">null</span> then * all necessary config files (in particular <i>config</i> and <i>servers</i>) * 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. * * @param dir * a new location of the run-time configuration area * @param readonly * if <span class="javakeyword">true</span> then run-time * configuration options are available only for reading, if <span * class="javakeyword">false</span> then those options are * available for both reading and writing * @return a default implementation of the run-time configuration options * driver interface */ public static DefaultSVNOptions createDefaultOptions(File dir, boolean readonly) { return new DefaultSVNOptions(dir, readonly); }
/** * Creates a default run-time configuration options driver that uses the * provided configuration directory. * * <p> * If <code>dir</code> is not <span class="javakeyword">null</span> then * all necessary config files (in particular <i>config</i> and <i>servers</i>) * 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. * * @param dir * a new location of the run-time configuration area * @param readonly * if <span class="javakeyword">true</span> then run-time * configuration options are available only for reading, if <span * class="javakeyword">false</span> then those options are * available for both reading and writing * @return a default implementation of the run-time configuration options * driver interface */ public static DefaultSVNOptions createDefaultOptions(File dir, boolean readonly) { return new DefaultSVNOptions(dir, readonly); }
private void setSVNClientManager(AbstractLicenseMojo mojo, String svnServerID) { SVNClientManager c = svnClientThreadLocal.get(); if (c == null) { Credentials svnCredentials = mojo.findCredentials(svnServerID); if (svnCredentials == null) { c = SVNClientManager.newInstance(new DefaultSVNOptions()); } else { c = SVNClientManager.newInstance(new DefaultSVNOptions(), svnCredentials.getLogin(), svnCredentials.getPassword()); } svnClientThreadLocal.set(c); } }
/** * Creates the subversion custom authentication manager. * * @param userName the user name. * @param password the password. * @param connectionTimeout the connection timeout. * @param readTimeout the read timeout. * @return the subversion custom authentication manager. */ public static SvnCustomAuthenticationManager create(String userName, char[] password, Integer connectionTimeout, Integer readTimeout) { DefaultSVNOptions options = new DefaultSVNOptions(null, true); boolean store = options.isAuthStorageEnabled(); return new SvnCustomAuthenticationManager(store, userName, password, connectionTimeout, readTimeout); }
@NotNull private SvnOperationFactory createOperationFactory(@NotNull String userName, @NotNull String password) { final SVNWCContext wcContext = new SVNWCContext(new DefaultSVNOptions(getTempDirectory(), true), null); wcContext.setSqliteTemporaryDbInMemory(true); wcContext.setSqliteJournalMode(SqlJetPagerJournalMode.MEMORY); final SvnOperationFactory factory = new SvnOperationFactory(wcContext); factory.setAuthenticationManager(BasicAuthenticationManager.newInstance(userName, password.toCharArray())); svnFactories.add(factory); return factory; }
/** * Gives the name of the person who made the last commit * @param address the repository's address * @param login the username to use to connect to the repository * @param password the password to use to connect to the repository * @return the name of the person who made the last commit * @throws SVNException if there is a problem while accessing the repository */ public String getHeadcommiter(String address, String login, String password) throws SVNException { ISVNAuthenticationManager svnAuthManager = SVNWCUtil.createDefaultAuthenticationManager(login, password); DefaultSVNOptions svnOptions = new DefaultSVNOptions(); svnOptions.setPropertyValue(SVNProperty.EOL_STYLE, SVNProperty.EOL_STYLE_LF); SVNWCClient wcClient = new SVNWCClient(svnAuthManager, svnOptions); SVNInfo info = wcClient.doInfo(SVNURL.parseURIEncoded(address), SVNRevision.HEAD, SVNRevision.HEAD); String headAuthor = info.getAuthor(); return headAuthor; }