当前位置: 首页>>代码示例>>Java>>正文


Java SVNRepositoryFactoryImpl.setup方法代码示例

本文整理汇总了Java中org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl.setup方法的典型用法代码示例。如果您正苦于以下问题:Java SVNRepositoryFactoryImpl.setup方法的具体用法?Java SVNRepositoryFactoryImpl.setup怎么用?Java SVNRepositoryFactoryImpl.setup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl的用法示例。


在下文中一共展示了SVNRepositoryFactoryImpl.setup方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setupLibrary

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
public static void setupLibrary(String url) {
	// For using over http:// and https://
	if (url.startsWith("http://") || url.startsWith("https://")) {
		DAVRepositoryFactory.setup();
	}

	// For using over http:// and https://
	if (url.startsWith("svn")) {
		SVNRepositoryFactoryImpl.setup();
	}

	// For using over file:///
	if (url.startsWith("file://")) {
		FSRepositoryFactory.setup();
	}
}
 
开发者ID:AgarwalNeha1,项目名称:gluu,代码行数:17,代码来源:SvnHelper.java

示例2: initialize

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
/**
 * Initializes the library to work with a repository either via svn:// (and
 * svn+ssh://) or via http:// (and https://)
 */
private static void initialize()
{
    if ( initialized )
    {
        return;
    }

    /*
     * for DAV (over http and https)
     */
    DAVRepositoryFactory.setup();

    /*
    * for svn (over svn and svn+ssh)
    */
    SVNRepositoryFactoryImpl.setup();

    /*
     * for file
     */
    FSRepositoryFactory.setup();
    initialized = true;
}
 
开发者ID:olamy,项目名称:maven-scm-provider-svnjava,代码行数:28,代码来源:SvnJavaScmProvider.java

示例3: SVNClientImpl

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
@Autowired
public SVNClientImpl(SVNEventDao svnEventDao, EnvService envService, TransactionService transactionService) {
    this.svnEventDao = svnEventDao;
    this.transactionService = transactionService;
    // Spooling directory
    File spoolDirectory = envService.getWorkingDir("svn", "spooling");
    logger.info("[svn] Using Spooling directory at {}", spoolDirectory.getAbsolutePath());
    // Custom logger
    SVNDebugLog.setDefaultLog(new SVNClientLogger());
    // Repository factories
    SVNRepositoryFactoryImpl.setup();
    DAVRepositoryFactory.setup(
            // Using spooling
            new DefaultHTTPConnectionFactory(
                    spoolDirectory,
                    true,
                    null)
    );
}
 
开发者ID:nemerosa,项目名称:ontrack,代码行数:20,代码来源:SVNClientImpl.java

示例4: setupLibrary

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
/**
 * Initializes the library to work with a repository via
 * different protocols.
 */
private static void setupLibrary() {
    /*
     * For using over http:// and https://
     */
    DAVRepositoryFactory.setup();
    /*
     * For using over svn:// and svn+xxx://
     */
    SVNRepositoryFactoryImpl.setup();

    /*
     * For using over file:///
     */
    FSRepositoryFactory.setup();
}
 
开发者ID:jcrcano,项目名称:DrakkarKeel,代码行数:20,代码来源:SVNController.java

示例5: iniciaRepositorio

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
public static void iniciaRepositorio(String url) {

        String[] partes = url.split(":");

        if (partes.length > 1) {
            if (partes[0].equals("http") || partes[0].equals("https")) {
                DAVRepositoryFactory.setup();
            } else if (partes[0].equals("file")) {
                FSRepositoryFactory.setup();
            } else {
                SVNRepositoryFactoryImpl.setup();
            }
        } else {
            throw new IndexOutOfBoundsException("URL inválida.");
        }
    }
 
开发者ID:gems-uff,项目名称:oceano,代码行数:17,代码来源:Subversion.java

示例6: initRepositoryFactory

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
public synchronized void initRepositoryFactory(final String repositoryUrl) {
    if (repositoryUrl.matches("^file://.*$") && !FSRepositoryInitialized) {
        System.out.println("----------------> Initializing FSRepositoryFactory");
        FSRepositoryFactory.setup();
        FSRepositoryInitialized = true;

    } else if (repositoryUrl.matches("^https?://.*$") && !DAVRepositoryInitialized) {
        System.out.println("----------------> Initializing DAVRepositoryFactory");
        DAVRepositoryFactory.setup();
        DAVRepositoryInitialized = true;

    } else if (repositoryUrl.matches("^svn(\\+.+)?://.*$") && !SVNRepositoryInitialized) {
        System.out.println("----------------> Initializing SVNRepositoryFactory");
        SVNRepositoryFactoryImpl.setup();
        DAVRepositoryInitialized = true;
    }
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:18,代码来源:SVN_By_SVNKit.java

示例7: setUpClass

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
@BeforeClass
public static void setUpClass() throws Exception {
    System.out.println("ESTABELECENDO O SVN");
    /*
     * Para uso sobre http:// e https://
     */
    DAVRepositoryFactory.setup();
    /*
     * Para uso sobre svn:// e svn+xxx://
     */
    SVNRepositoryFactoryImpl.setup();
    /*
     * Para uso sobre  file:///
     */
    FSRepositoryFactory.setup();
    System.out.println("SVN ESTABELECIDO");
}
 
开发者ID:gems-uff,项目名称:oceano,代码行数:18,代码来源:TesteSvnKit.java

示例8: setupLibrary

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
private static void setupLibrary() {
	/*
	 * For using over http:// and https://
	 */
	DAVRepositoryFactory.setup();
	/*
	 * For using over svn:// and svn+xxx://
	 */
	SVNRepositoryFactoryImpl.setup();

	/*
	 * For using over file:///
	 */
	FSRepositoryFactory.setup();
}
 
开发者ID:callakrsos,项目名称:Gargoyle,代码行数:16,代码来源:DisplayFile.java

示例9: setupType

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
private void setupType(final String url) throws SVNException {
    svnurl = SVNURL.parseURIDecoded(url);

    if (url.startsWith("http")) {
        DAVRepositoryFactory.setup();
        repository = SVNRepositoryFactory.create(svnurl);
    } else if (url.startsWith("svn")) {
        SVNRepositoryFactoryImpl.setup();
        repository = SVNRepositoryFactory.create(svnurl);
    } else {
        FSRepositoryFactory.setup();
        repository = SVNRepositoryFactory.create(svnurl);
    }
}
 
开发者ID:friedlwo,项目名称:AppWoksUtils,代码行数:15,代码来源:Subversion.java

示例10: setupLibrary

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
private static void setupLibrary() {
    /*
     * For using over http:// and https://
     */
    DAVRepositoryFactory.setup();
    /*
     * For using over svn:// and svn+xxx://
     */
    SVNRepositoryFactoryImpl.setup();
    
    /*
     * For using over file:///
     */
    FSRepositoryFactory.setup();
}
 
开发者ID:aserg-ufmg,项目名称:ModularityCheck,代码行数:16,代码来源:History.java

示例11: SvnRepository

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
/**
 * Initialises repository to accept requests for svn protocol.
 */
public SvnRepository() {
  super();
  FSRepositoryFactory.setup();
  DAVRepositoryFactory.setup();
  SVNRepositoryFactoryImpl.setup();
  try {
    Manifest manifest = getManifest(this.getClass());
    Attributes attributes = manifest.getMainAttributes();
    Message.info("IvySvn Build-Version: " + attributes.getValue("Build-Version"));
    Message.info("IvySvn Build-DateTime: " + attributes.getValue("Build-DateTime"));
  } catch (IOException e) {
    Message.warn("Could not load manifest: " + e.getMessage());
  }
}
 
开发者ID:massdosage,项目名称:ivysvn,代码行数:18,代码来源:SvnRepository.java

示例12: setUp

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
@Before
public void setUp() throws SVNException {
  FSRepositoryFactory.setup();
  DAVRepositoryFactory.setup();
  SVNRepositoryFactoryImpl.setup();
  testTempFolder.mkdirs();
  creatIvyRepositoryRoot();
  ivyRepositoryRootURL = SVNURL.parseURIEncoded(ivyRepositoryRoot);
  readRepository = SvnUtils.createRepository(ivyRepositoryRootURL, svnUserName, svnPassword, null, null, -1, null,
      null, false);
  svnDAO = new SvnDao(readRepository);
}
 
开发者ID:massdosage,项目名称:ivysvn,代码行数:13,代码来源:BaseTestCase.java

示例13: AbstractSvnOperation

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
/**
 * 
 * @param option
 */
public AbstractSvnOperation(SvnOptions option) {

	// 安装仓库工厂
	SVNRepositoryFactoryImpl.setup();
	logger.info("SVNRepository Factory setup");

	try {
		repositoryURL = SVNURL.parseURIEncoded(option.getRepositoryURL());
		logger.info("repository URL success");
	} catch (SVNException e) {
		logger.error("repository URL error");
	}

	// 驱动选项
	ISVNOptions options = SVNWCUtil.createDefaultOptions(true);

	this.clientManager = SVNClientManager.newInstance(
			(DefaultSVNOptions) options, option.getName(),
			option.getPassword());
	logger.info("create SVNClientManager success");

	this.workpath = option.getWorkPath();

	doCheckout();

}
 
开发者ID:joaquinaimar,项目名称:wizard,代码行数:31,代码来源:AbstractSvnOperation.java

示例14: initializeRepository

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
/**
 * Called internally to initialize the connection to the Subversion
 * repository.
 * @throws IOException Unable to connect to Subversion.
 */
private void initializeRepository() throws IOException {
   if (repositoryReference == null) {
      try {
         final SVNURL path = SVNURL.parseURIEncoded(getPath());
         final String protocol = path.getProtocol();
         
         if (protocol.startsWith("http")) {
            DAVRepositoryFactory.setup();
         } else {
            SVNRepositoryFactoryImpl.setup();
         }
         
         repositoryReference =
               SVNRepositoryFactory.create(
                     SVNURL.parseURIEncoded(getPath())
               );
         
      } catch (SVNException e) {
         throw new IOException("Could not connect to Subversion", e);
      }
      
      final String username = getUsername();
      final String password = getPassword();
      if (username != null && password != null) {
         repositoryReference.setAuthenticationManager(
               SVNWCUtil.createDefaultAuthenticationManager(
                     username,
                     password)
               );
      }
   }
}
 
开发者ID:fuerve,项目名称:VillageElder,代码行数:38,代码来源:SubversionRepository.java

示例15: setupLibrary

import org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl; //导入方法依赖的package包/类
public static void setupLibrary() {
	DAVRepositoryFactory.setup();
	SVNRepositoryFactoryImpl.setup();
	FSRepositoryFactory.setup();
}
 
开发者ID:mondo-project,项目名称:mondo-hawk,代码行数:6,代码来源:SvnUtil.java


注:本文中的org.tmatesoft.svn.core.internal.io.svn.SVNRepositoryFactoryImpl.setup方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。