本文整理汇总了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);
}
示例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();
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例8: WebhooksSettings
import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public WebhooksSettings(@NonNull ServerPaths serverPaths) {
settingsFile = new File(serverPaths.getConfigDir(), SETTINGS_FILE);
urls = restoreSettings();
}
示例9: PiazzaConfiguration
import jetbrains.buildServer.serverSide.ServerPaths; //导入方法依赖的package包/类
public PiazzaConfiguration(@NotNull ServerPaths serverPaths) {
this.teamCityConfigDir = serverPaths.getConfigDir();
this.loadConfigurationFromXmlFile();
}