public class Upgrader
extends java.lang.Object
| Constructor and Description |
|---|
Upgrader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args)
The main method is designed to be called from the installer executables.
|
static void |
removeConfigXML(java.lang.String basePath,
java.lang.String dataDirPath)
This method should only be used when upgrading before 7.3 to 7.3 and later.
|
static void |
upgradeGatewayXML(java.io.File gatewayXML,
java.lang.String portXML,
java.lang.String sslPortXML)
Updates gateway.xml from a pre-7.3 version either during an upgrade or during a backup restoration from before
7.3
|
static void |
upgradeLaunchFile(java.lang.String path,
java.lang.String logsDir,
java.lang.String fileToUpgrade)
Adds lines to or removes lines from ignition.conf to bring it up to date with the latest Ignition version.
|
public static void main(java.lang.String[] args)
public static void removeConfigXML(java.lang.String basePath,
java.lang.String dataDirPath)
throws java.lang.Exception
basePath - The path to the installation folder.dataDirPath - The path to the data folder.java.lang.Exceptionpublic static void upgradeGatewayXML(java.io.File gatewayXML,
java.lang.String portXML,
java.lang.String sslPortXML)
throws java.lang.Exception
gatewayXML - The File object that represents gateway.xml on the local machineportXML - The XML line that contains the "catapult.port" entry.
Example: <entry key="catapult.port">8088</entry>sslPortXML - The XML line that contains the "catapult.sslport" entry.
Example: <entry key="catapult.sslport">8043</entry>java.lang.Exceptionpublic static void upgradeLaunchFile(java.lang.String path,
java.lang.String logsDir,
java.lang.String fileToUpgrade)
throws java.lang.Exception
path - The path to the data dir. It is expected that when upgrading to 7.3 or later, the
ignition.conf would have been moved from /contexts/main to the data dir before calling this
method.fileToUpgrade - Normally will be ignition.conf, but for a white label build, this file name will varyjava.lang.Exception