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(@NotNull Supplier<String> configDirectory) |
Modifier and Type | Method and Description |
---|---|
boolean |
configFileExists() |
@NotNull String |
getBuildNumber() |
@NotNull 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 @NotNull String getBuildNumber() throws com.atlassian.config.ConfigurationException
getBuildNumber
in interface BambooSharedProperties
com.atlassian.config.ConfigurationException
public boolean configFileExists()
configFileExists
in interface BambooSharedProperties
@NotNull public @NotNull 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 © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.