Package jetbrains.buildServer.serverSide
Class StartupConfiguration
- java.lang.Object
-
- jetbrains.buildServer.serverSide.StartupConfiguration
-
public class StartupConfiguration extends java.lang.Object
Represents parameters given to the TeamCity on startup. Differs from internal.properties in a way that internal.properties may not yet exist.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ONE_TIME_SUPER_USER_TOKEN
static java.lang.String
TEAMCITY_INSTALLATION_COMPLETED
-
Constructor Summary
Constructors Constructor Description StartupConfiguration()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
canSave()
static java.lang.String
getDescription()
static java.util.Properties
getFinalSystemProperties()
static java.lang.String
getLocation()
static java.lang.String
getProperty(java.lang.String key)
static void
init(java.io.File configFile)
Public for testsstatic void
removeProperty(java.lang.String key)
static void
saveProperty(java.lang.String key, java.lang.String value)
-
-
-
Field Detail
-
TEAMCITY_INSTALLATION_COMPLETED
public static final java.lang.String TEAMCITY_INSTALLATION_COMPLETED
- See Also:
- Constant Field Values
-
ONE_TIME_SUPER_USER_TOKEN
public static final java.lang.String ONE_TIME_SUPER_USER_TOKEN
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public static void init(@Nullable java.io.File configFile)
Public for tests
-
getProperty
@Nullable public static java.lang.String getProperty(@NotNull java.lang.String key)
-
getFinalSystemProperties
@NotNull public static java.util.Properties getFinalSystemProperties()
-
canSave
public static boolean canSave()
-
saveProperty
public static void saveProperty(@NotNull java.lang.String key, @NotNull java.lang.String value) throws java.io.IOException
- Throws:
java.io.IOException
-
removeProperty
public static void removeProperty(@NotNull java.lang.String key) throws java.io.IOException
- Throws:
java.io.IOException
-
getLocation
public static java.lang.String getLocation()
-
getDescription
@NotNull public static java.lang.String getDescription()
-
-