com.atlassian.confluence.setup
Enum BuildInformation

java.lang.Object
  extended by java.lang.Enum<BuildInformation>
      extended by com.atlassian.confluence.setup.BuildInformation
All Implemented Interfaces:
Serializable, Comparable<BuildInformation>

public enum BuildInformation
extends Enum<BuildInformation>

Singleton which provides build and version information for the Confluence application. Configuration is read from "com/atlassian/confluence/default.properties" on the classpath.

Note that the build number in the application's home directory or database may differ from the version of the application at various times. This object only represents the build information of the application itself.


Enum Constant Summary
INSTANCE
           
 
Method Summary
 Date getBuildDate()
           
 String getBuildExcludedLocale()
           
 String getBuildNumber()
           
 String getBuildPartner()
           
 String getRevisionNumber()
           
 String getVersionNumber()
           
 String toString()
           
static BuildInformation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BuildInformation[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSTANCE

public static final BuildInformation INSTANCE
Method Detail

values

public static final BuildInformation[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(BuildInformation c : BuildInformation.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static BuildInformation valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

getVersionNumber

public String getVersionNumber()
Returns:
the version number of this release of Confluence. Components are generally separated by either dots or dashes. Pre-release versions include letters as well as numbers. Sample release versions: 2.0, 2.8.2. Sample pre-release versions: 3.0-SNAPSHOT, 2.9-m4, 2.10-rc1.

getBuildDate

public Date getBuildDate()
Returns:
the date this version of Confluence was built

getBuildNumber

public String getBuildNumber()
Returns:
a unique number for each release of Confluence. Used primarily to manage the execution of upgrade tasks. May be a value like '@BUILD_NUMBER@' during development.

getRevisionNumber

public String getRevisionNumber()
Returns:
the internal revision number of the code in Confluence's source control system, or null if the revision number is not available.

getBuildPartner

public String getBuildPartner()
Returns:
the partner this release of Confluence was built for, or null if this is not a partner-specific build of Confluence

getBuildExcludedLocale

public String getBuildExcludedLocale()
Returns:
the locales of language packs which cannot be used with this release of Confluence due to partner licensing agreements, or null if this is not a partner-specific build of Confluence

toString

public String toString()
Overrides:
toString in class Enum<BuildInformation>


Confluence is developed by Atlassian.