java.lang.Object | |
↳ | com.atlassian.jira.bc.dataimport.ConstrainedBuildUtilsInfo |
Temporary class used during transition period (will be deleted afterwards). In dark ages mode we do not want to
allow importing data that was exported from renaissance. As DefaultDataImportService
uses
BuildUtilsInfoImpl
class to determine if data can be imported, this class returns
com.atlassian.jira.util.BuildUtils#CLOUD_DARK_AGES_BUILD_NUMBER as build number which would prevent import
from renaissance happening (as downgrade from UpgradeTask_Build70100
is
not possible).
NOTE: this class will change default JIRA behaviour only if roles are not enabled (dark ages) and instance is running in Cloud. In any other case it will work as before.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets the build number of this JIRA install.
| |||||||||||
Returns the version of AppLinks that JIRA ships with.
| |||||||||||
Gets a build information summary as a String.
| |||||||||||
Gets the partner name of this JIRA build
| |||||||||||
Returns the id of the SCM commit that was used to make this build of JIRA.
| |||||||||||
Gets the date this version of JIRA was built on.
| |||||||||||
Gets the current build number of JIRA.
| |||||||||||
Gets the build number of the database that this JIRA instance points to.
| |||||||||||
Return the version used for JIRA documentation.
| |||||||||||
Returns the version of Apache Lucene included in JIRA.
| |||||||||||
Gets the minimal build number that JIRA can upgrade from
| |||||||||||
Get the minimum version of JIRA that can be upgraded to this instance version.
| |||||||||||
Returns the version of Atlassian SAL that JIRA exports into OSGI-land.
| |||||||||||
Returns the SCM commit id that was used to make this build of JIRA.
| |||||||||||
Gets the current version of JIRA
| |||||||||||
Gets the numerical components of the version.
| |||||||||||
Returns whether the current version is a beta (i.e.
| |||||||||||
Returns whether the current version is a milestone (i.e.
| |||||||||||
Returns whether the current version is a release candidate (i.e.
| |||||||||||
Returns whether the current version is a snapshot (i.e.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Gets the build number of this JIRA install.
That is, the build number of the currently running installation files. The DB also stores a build number.
Returns the version of AppLinks that JIRA ships with.
Gets a build information summary as a String.
Gets the partner name of this JIRA build
Returns the id of the SCM commit that was used to make this build of JIRA. This method returns an empty string if JIRA was built from the source distribution.
Gets the date this version of JIRA was built on.
Gets the current build number of JIRA.
This is the same value as getApplicationBuildNumber()
except it is returned as a String.
Gets the build number of the database that this JIRA instance points to.
Under 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.
Return the version used for JIRA documentation.
This is the version that JIRA uses when generating links to its externally hosted documentation.
Returns the version of Apache Lucene included in JIRA.
This will be the version used to export the lucene packages to the OSGI container.
Gets the minimal build number that JIRA can upgrade from
Get the minimum version of JIRA that can be upgraded to this instance version.
Returns the version of Atlassian SAL that JIRA exports into OSGI-land.
Returns the SCM commit id that was used to make this build of JIRA. This used to be an SVN revision, but is now a Git commit id (aka a SHA1). This method returns an empty string if JIRA was built from the source distribution.
Gets the numerical components of the version.
"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 lexicographicalComparator()
:
int[] v510 = {5, 1, 0}; if (Ints.lexicographicalComparator().compare(buildUtils.getVersionNumbers(), v510) >= 0 ) { ...
Returns whether the current version is a beta (i.e. has -beta after its version numbers)
Returns whether the current version is a milestone (i.e. has -mXX after its version numbers)
Returns whether the current version is a release candidate (i.e. has -rc after its version numbers)
Returns whether the current version is a snapshot (i.e. has -SNAPSHOT after its version numbers)