com.atlassian.confluence.setup
Enum BuildInformation
java.lang.Object
java.lang.Enum<BuildInformation>
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.
INSTANCE
public static final BuildInformation INSTANCE
TIMESTMP_FMT
public static final String TIMESTMP_FMT
- See Also:
- Constant Field Values
values
public static BuildInformation[] values()
- Returns an array containing the constants of this enum type, in
the order they are 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 are 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
NullPointerException
- if the argument is null
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
getBuildYear
public String getBuildYear()
- Returns:
- the year this version of Confluence was built
- See Also:
getBuildDate()
getBuildTimestamp
public Date getBuildTimestamp()
- Returns:
- the timestamp 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
getBambooBuildNumber
public String getBambooBuildNumber()
- Returns:
- Returns the bamboo build number if this instance has been build with bamboo.
toString
public String toString()
- Overrides:
toString
in class Enum<BuildInformation>