public class BuildUtilsInfoImpl extends Object implements BuildUtilsInfo
BuildUtils class and the BuildUtilsInfo.properties file.| Constructor and Description |
|---|
BuildUtilsInfoImpl()
Constructor that loads the properties from the '' file and the Jira version
number from
BuildUtils.getVersion(). |
| Modifier and Type | Method and Description |
|---|---|
int |
getApplicationBuildNumber()
Gets the build number of this Jira install.
|
String |
getApplinksVersion()
Returns the version of AppLinks that Jira ships with.
|
String |
getAuditVersion()
Returns the version of Atlassian Audit that Jira exports into OSGI-land.
|
String |
getBuildInformation()
Gets a build information summary as a String.
|
String |
getBuildPartnerName()
Gets the partner name of this Jira build
|
String |
getBuildProperty(String key)
Returns the value of the build property with the given key.
|
String |
getCommitId()
Returns the id of the SCM commit that was used to make this build of Jira.
|
String |
getCrowdOsgiVersion() |
Date |
getCurrentBuildDate()
Gets the date this version of Jira was built on.
|
String |
getCurrentBuildNumber()
Gets the current build number of Jira.
|
int |
getDatabaseBuildNumber()
Gets the build number of the database that this Jira instance points to.
|
String |
getDocVersion()
Return the version used for Jira documentation.
|
String |
getGuavaOsgiVersion() |
String |
getMinimumUpgradableBuildNumber()
Gets the minimal build number that Jira can upgrade from
|
String |
getMinimumUpgradableVersion()
Get the minimum version of Jira that can be upgraded to this instance version.
|
String |
getSalVersion()
Returns the version of Atlassian SAL that Jira exports into OSGI-land.
|
String |
getSvnRevision()
Deprecated.
|
Collection<Locale> |
getUnavailableLocales() |
String |
getVersion()
Gets the current version of Jira
|
int[] |
getVersionNumbers()
Gets the numerical components of the version.
|
boolean |
isBeta()
Returns whether the current version is a beta (i.e.
|
boolean |
isEap()
Indicates whether the current version is an Early Access Program (EAP) release.
|
boolean |
isFinal()
Indicates whether the current version is a final (GA) release.
|
boolean |
isMilestone()
Returns whether the current version is a milestone (i.e.
|
boolean |
isRc()
Returns whether the current version is a release candidate (i.e.
|
boolean |
isSnapshot()
Returns whether the current version is a snapshot (i.e.
|
String |
toString() |
public BuildUtilsInfoImpl()
BuildUtils.getVersion().public String getVersion()
BuildUtilsInfogetVersion in interface BuildUtilsInfopublic String getDocVersion()
BuildUtilsInfoThis is the version that Jira uses when generating links to its externally hosted documentation.
getDocVersion in interface BuildUtilsInfopublic int[] getVersionNumbers()
BuildUtilsInfo
"5.0" gives [5, 0, 0]"5.0.1" gives [5, 0, 1]"5.0-beta1" gives [5, 0, 0]"5.0.1-SNAPSHOT" gives [5, 0, 1]The returned array is guaranteed to have at least 3 elements. Any non-numeric suffix in getVersion() is ignored.
A simple way to use this information is with Guava's Ints.lexicographicalComparator():
int[] v510 = {5, 1, 0};
if (Ints.lexicographicalComparator().compare(buildUtils.getVersionNumbers(), v510) >= 0 ) { ...
getVersionNumbers in interface BuildUtilsInfopublic String getCurrentBuildNumber()
BuildUtilsInfo
This is the same value as BuildUtilsInfo.getApplicationBuildNumber() except it is returned as a String.
getCurrentBuildNumber in interface BuildUtilsInfoBuildUtilsInfo.getDatabaseBuildNumber(),
BuildUtilsInfo.getApplicationBuildNumber()public int getApplicationBuildNumber()
BuildUtilsInfoThat is, the build number of the currently running installation files. The DB also stores a build number.
getApplicationBuildNumber in interface BuildUtilsInfoBuildUtilsInfo.getDatabaseBuildNumber()public int getDatabaseBuildNumber()
BuildUtilsInfoUnder normal circumstances this will be the same as the build number of the Jira installation. However, when you first upgrade a Jira database or import data exported from an older Jira, the existing database will start on the previous build number. Jira will then run "Upgrade Tasks" to update the data in the DB.
getDatabaseBuildNumber in interface BuildUtilsInfoBuildUtilsInfo.getCurrentBuildNumber()public String getMinimumUpgradableBuildNumber()
BuildUtilsInfogetMinimumUpgradableBuildNumber in interface BuildUtilsInfopublic Date getCurrentBuildDate()
BuildUtilsInfogetCurrentBuildDate in interface BuildUtilsInfonull if it couldn't be parsedpublic String getBuildPartnerName()
BuildUtilsInfogetBuildPartnerName in interface BuildUtilsInfopublic String getBuildInformation()
BuildUtilsInfogetBuildInformation in interface BuildUtilsInfo@Deprecated public String getSvnRevision()
BuildUtilsInfogetSvnRevision in interface BuildUtilsInfopublic String getCommitId()
BuildUtilsInfogetCommitId in interface BuildUtilsInfopublic String getMinimumUpgradableVersion()
BuildUtilsInfogetMinimumUpgradableVersion in interface BuildUtilsInfopublic Collection<Locale> getUnavailableLocales()
getUnavailableLocales in interface BuildUtilsInfopublic String getSalVersion()
getSalVersion in interface BuildUtilsInfopublic String getApplinksVersion()
getApplinksVersion in interface BuildUtilsInfopublic String getCrowdOsgiVersion()
getCrowdOsgiVersion in interface BuildUtilsInfopublic String getGuavaOsgiVersion()
getGuavaOsgiVersion in interface BuildUtilsInfopublic String getBuildProperty(String key)
BuildUtilsInfogetBuildProperty in interface BuildUtilsInfokey - the key for which to retrieve the valuenull if the key is unknownpublic boolean isBeta()
BuildUtilsInfoisBeta in interface BuildUtilsInfopublic boolean isEap()
BuildUtilsInfoisEap in interface BuildUtilsInfopublic boolean isFinal()
BuildUtilsInfoisFinal in interface BuildUtilsInfopublic boolean isRc()
BuildUtilsInfoisRc in interface BuildUtilsInfopublic boolean isSnapshot()
BuildUtilsInfoisSnapshot in interface BuildUtilsInfopublic boolean isMilestone()
BuildUtilsInfoisMilestone in interface BuildUtilsInfopublic String getAuditVersion()
BuildUtilsInfogetAuditVersion in interface BuildUtilsInfoCopyright © 2002-2022 Atlassian. All Rights Reserved.