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


Java ServerPaths.getConfigDir方法代码示例

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


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

示例1: VSONotificatorConfig

import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public VSONotificatorConfig(@NotNull ServerPaths serverPaths) throws IOException {
  final File configDir = new File(serverPaths.getConfigDir(), FreeMarkerHelper.TEMPLATES_ROOT + "/" + Constants.NOTIFICATOR_TYPE);
  configDir.mkdirs();
  myConfigFile = new File(configDir, CONFIG_FILENAME);
  FileUtil.copyResourceIfNotExists(getClass(), "/message_templates/" + CONFIG_FILENAME, myConfigFile);
  reloadConfiguration();

  copyMessageTemplates(configDir);

  myChangeObserver = new FileWatcher(myConfigFile);
  myChangeObserver.setSleepingPeriod(10000);
  myChangeObserver.registerListener(this);
  myChangeObserver.start();

  myConfiguration = FreeMarkerHelper.getConfiguration(serverPaths);
}
 
开发者ID:JetBrains,项目名称:tc-vso-rooms,代码行数:17,代码来源:VSONotificatorConfig.java

示例2: MsTeamsNotificationMainConfig

import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public MsTeamsNotificationMainConfig(ServerPaths serverPaths) {
       this.content = new MsTeamsNotificationContentConfig();
	this.myConfigDir = new File(serverPaths.getConfigDir(), "msteams");
	this.myConfigFile = new File(this.myConfigDir, "msteams-config.xml");
       configFileExists = this.myConfigFile.exists();
	reloadConfiguration();
	this.myChangeObserver = new FileWatcher(this.myConfigFile);
	this.myChangeObserver.setSleepingPeriod(10000L);
	this.myChangeObserver.registerListener(this);
	this.myChangeObserver.start();
}
 
开发者ID:spyder007,项目名称:teamcity-msteams-notifier,代码行数:12,代码来源:MsTeamsNotificationMainConfig.java

示例3: ServerConfigPersistenceManager

import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public ServerConfigPersistenceManager(@NotNull ServerPaths serverPaths){
    xStream = new XStream();
    xStream.setClassLoader(ConfigurationSerializable.class.getClassLoader());
    xStream.processAnnotations(new Class [] {
            ConfigurationSerializable.class,
            AccountSerializable.class,
            ProjectSerializable.class,
            ScenarioSerializable.class
    });
    
    configFile = new File(serverPaths.getConfigDir(), CONFIG_FILE_NAME);
    loadConfiguration();
    
    INSTANCE = this;
}
 
开发者ID:automate-website,项目名称:teamcity-plugin,代码行数:16,代码来源:ServerConfigPersistenceManager.java

示例4: YammerNotificationMainConfig

import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public YammerNotificationMainConfig(ServerPaths serverPaths) {
       this.content = new YammerNotificationContentConfig();
	this.myConfigDir = new File(serverPaths.getConfigDir(), "yammer");
	this.myConfigFile = new File(this.myConfigDir, "yammer-config.xml");
       configFileExists = this.myConfigFile.exists();
	reloadConfiguration();

	this.myChangeObserver = new FileWatcher(this.myConfigFile);
	this.myChangeObserver.setSleepingPeriod(10000L);
	this.myChangeObserver.registerListener(this);
	this.myChangeObserver.start();
}
 
开发者ID:iguissouma,项目名称:teamcity-yammer-notifier,代码行数:13,代码来源:YammerNotificationMainConfig.java

示例5: SlackNotificationMainConfig

import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public SlackNotificationMainConfig(ServerPaths serverPaths) {
       this.content = new SlackNotificationContentConfig();
	this.myConfigDir = new File(serverPaths.getConfigDir(), "slack");
	this.myConfigFile = new File(this.myConfigDir, "slack-config.xml");
       configFileExists = this.myConfigFile.exists();
	reloadConfiguration();
	this.myChangeObserver = new FileWatcher(this.myConfigFile);
	this.myChangeObserver.setSleepingPeriod(10000L);
	this.myChangeObserver.registerListener(this);
	this.myChangeObserver.start();
}
 
开发者ID:PeteGoo,项目名称:tcSlackBuildNotifier,代码行数:12,代码来源:SlackNotificationMainConfig.java

示例6: RallySettingsController

import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public RallySettingsController(RallyConnector connector, PagePlaces places, WebControllerManager webControllerManager,
                               PluginDescriptor descriptor, ServerPaths serverPaths) {

    myRallyIntegratorConfig = new FileConfig(serverPaths.getConfigDir());
    this.descriptor = descriptor;
    this.connector = connector;
    this.webControllerManager = webControllerManager;
    this.myPagePlaces = places;
    this.myPlaceId = PlaceId.ADMIN_SERVER_CONFIGURATION_TAB;

    register();
}
 
开发者ID:trevleyb,项目名称:TeamCityRallyIntegration,代码行数:13,代码来源:RallySettingsController.java

示例7: ServerHubConfigPersistenceManager

import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public ServerHubConfigPersistenceManager(@NotNull final ServerPaths serverPaths) {
    gson = new Gson();
    jsonParser = new JsonParser();
    configFile = new File(serverPaths.getConfigDir(), CONFIG_FILE_NAME);
    loadSettings();
}
 
开发者ID:blackducksoftware,项目名称:hub-teamcity,代码行数:7,代码来源:ServerHubConfigPersistenceManager.java

示例8: WebhooksSettings

import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public WebhooksSettings(@NonNull ServerPaths serverPaths) {
  settingsFile = new File(serverPaths.getConfigDir(), SETTINGS_FILE);
  urls         = restoreSettings();
}
 
开发者ID:cloudnative,项目名称:teamcity-webhooks,代码行数:5,代码来源:WebhooksSettings.java

示例9: PiazzaConfiguration

import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public PiazzaConfiguration(@NotNull ServerPaths serverPaths) {
    this.teamCityConfigDir = serverPaths.getConfigDir();
    this.loadConfigurationFromXmlFile();
}
 
开发者ID:timomeinen,项目名称:team-piazza,代码行数:5,代码来源:PiazzaConfiguration.java


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