public class BambooSharedPropertiesImpl extends Object implements BambooSharedProperties
Modifier and Type | Field and Description |
---|---|
static String |
BAMBOO_PROPERTIES |
static String |
BUILD_NUMBER_PROPERTY_KEY |
Constructor and Description |
---|
BambooSharedPropertiesImpl(Supplier<String> configDirectory) |
Modifier and Type | Method and Description |
---|---|
boolean |
configFileExists() |
String |
getBuildNumber() |
Path |
getConfigFilePath() |
void |
load() |
void |
save() |
void |
setBuildNumber(String buildNumber) |
public static final String BAMBOO_PROPERTIES
public static final String BUILD_NUMBER_PROPERTY_KEY
public void setBuildNumber(String buildNumber) throws com.atlassian.config.ConfigurationException
setBuildNumber
in interface BambooSharedProperties
com.atlassian.config.ConfigurationException
@NotNull public String getBuildNumber() throws com.atlassian.config.ConfigurationException
getBuildNumber
in interface BambooSharedProperties
com.atlassian.config.ConfigurationException
public boolean configFileExists()
configFileExists
in interface BambooSharedProperties
@NotNull public Path getConfigFilePath()
getConfigFilePath
in interface BambooSharedProperties
public void save() throws com.atlassian.config.ConfigurationException
save
in interface BambooSharedProperties
com.atlassian.config.ConfigurationException
public void load() throws com.atlassian.config.ConfigurationException
load
in interface BambooSharedProperties
com.atlassian.config.ConfigurationException
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.