@Component public class JavaVersionIsSupported extends AbstractBootstrapUpgradeTask
Modifier and Type | Field and Description |
---|---|
static List<Version> |
SUPPORTED_VERSIONS
List of supported versions of Java, which we check against the version on the system
NOTE: This will need to be updated any time we support a new Java version
|
bootstrapManager, hibernateConfig
errors
Constructor and Description |
---|
JavaVersionIsSupported() |
Modifier and Type | Method and Description |
---|---|
void |
doUpgrade()
Perform the upgrade.
|
static Version |
parseJavaVersion(String[] version) |
static String[] |
parseVersionArray(String version) |
getDatabaseConnection, getDialect, setBootstrapManager, setHibernateConfig, withDatabaseConnection
getBuildNumber, getErrors, getShortDescription
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getBuildNumber, getErrors, getShortDescription
public void doUpgrade() throws ValidationException
UpgradeTask
ValidationException
public static String[] parseVersionArray(String version)
version
- - Java versionpublic static Version parseJavaVersion(String[] version)
version
- - array representation of Java version, eg:
"1.8.0_212" -> ["1", "8", "0"]
"11.0.2" -> ["11", "0", "2"]
"13-ea" -> ["13", "0", "0"]Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.