コード例 #1
0
  public void getServerFilesManagers(
      final Ref<SvnServerFileManager> systemManager, final Ref<SvnServerFileManager> userManager) {
    // created only if does not exist
    final File dir = new File(getConfigurationDirectory());
    if (!dir.exists()) {
      SVNConfigFile.createDefaultConfiguration(dir);
    }

    systemManager.set(
        new SvnServerFileManagerImpl(
            new IdeaSVNConfigFile(
                new File(SVNFileUtil.getSystemConfigurationDirectory(), SERVERS_FILE_NAME))));
    initServers();
    userManager.set(new SvnServerFileManagerImpl(myConfigFile));
  }
コード例 #2
0
 private void setConfigurationDirectory(String path) {
   myConfigurationDirectory = path;
   File dir =
       path == null ? new File(IdeaSubversionConfigurationDirectory.getPath()) : new File(path);
   SVNConfigFile.createDefaultConfiguration(dir);
 }