|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<BuildInformation> com.atlassian.confluence.setup.BuildInformation
public 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
|
Field Summary | |
---|---|
static java.lang.String |
TIMESTMP_FMT
|
Method Summary | |
---|---|
java.lang.String |
getBambooBuildKey()
Returns the Bamboo build key of the build producing this artifact. |
java.lang.String |
getBambooBuildNumber()
|
java.util.Date |
getBuildDate()
|
java.lang.String |
getBuildNumber()
|
java.util.Date |
getBuildTimestamp()
|
java.lang.String |
getBuildYear()
|
java.lang.String |
getGitCommitHash()
Returns the SHA-1 hash of the Git commit object this artifact is based on. |
java.lang.String |
getMajorVersion()
Deprecated. since 5.2. Use getVersionNumber() . |
java.lang.String |
getRevisionNumber()
Deprecated. since 5.0 use getGitCommitHash() instead |
java.lang.String |
getVersionNumber()
|
java.lang.String |
toString()
|
static BuildInformation |
valueOf(java.lang.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 are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final BuildInformation INSTANCE
Field Detail |
---|
public static final java.lang.String TIMESTMP_FMT
Method Detail |
---|
public static BuildInformation[] values()
for (BuildInformation c : BuildInformation.values()) System.out.println(c);
public static BuildInformation valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.lang.String getVersionNumber()
@Deprecated public java.lang.String getMajorVersion()
getVersionNumber()
.
public java.util.Date getBuildDate()
public java.lang.String getBuildYear()
getBuildDate()
public java.util.Date getBuildTimestamp()
public java.lang.String getBuildNumber()
@Deprecated public java.lang.String getRevisionNumber()
getGitCommitHash()
instead
public java.lang.String getGitCommitHash()
In case of a released artifact, points to a commit updating the POMs to point to the getVersionNumber()
.
The value may be "UNKNOWN" in case this is not a released artifact and the builder did not have Git available on his PATH or the artifact was build from a non-Git managed folder structure.
public java.lang.String getBambooBuildKey()
The build key looks like e.g. BAM-MAIN-JOBX which identifies a job in a Bamboo plan.
You can identify the execution by composing the Bamboo build key with the Bamboo build number,
<baseUrl>/browse/<bambooBuildKey>-<bambooBuildNumber>.
public java.lang.String getBambooBuildNumber()
getBambooBuildKey()
public java.lang.String toString()
toString
in class java.lang.Enum<BuildInformation>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |