Examples of SVNRepositories


Examples of org.tigris.subversion.subclipse.core.repo.SVNRepositories

*/
public class SubclipseUtils {

  public static ISVNRepositoryLocation getRepositoryLocation(String url) {
    SVNProviderPlugin provider = SVNProviderPlugin.getPlugin();
    SVNRepositories repositories = provider.getRepositories();

    ISVNRepositoryLocation location = null;
   
    ISVNRepositoryLocation[] locations = repositories.getKnownRepositories(new NullProgressMonitor());
    for(int i = 0; i < locations.length; i++ ) {
      String currentUrl = locations[i].getUrl().toString();
      if(url.startsWith(currentUrl)) {
        if(location==null || currentUrl.length()>location.getUrl().toString().length())
        location = locations[i];
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.