Class 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 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
    • Constructor Detail

      • StartupConfiguration

        public StartupConfiguration()
    • 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()