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 |
updateGatewayXmlParams(java.lang.String path)
Update gateway.xml entries with keys that contain "catapult" to "gateway" for 8.0 compatibility.
|
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 installDirPath,
java.lang.String dataDirPath,
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.
|
static void |
upgradeWebXml(java.lang.String installDirPath)
Modifies webserver\webapps\main\WEB-INF\web.xml such that items like SRFilter is updated to GatewayFilter
|
public static void main(java.lang.String[] args)
public static void updateGatewayXmlParams(java.lang.String path)
throws java.lang.Exception
java.lang.Exceptionpublic 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 upgradeWebXml(java.lang.String installDirPath)
throws java.lang.Exception
java.lang.Exceptionpublic static void upgradeLaunchFile(java.lang.String installDirPath,
java.lang.String dataDirPath,
java.lang.String logsDir,
java.lang.String fileToUpgrade)
throws java.lang.Exception
installDirPath - The path to the main installation dirdataDirPath - 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.logsDir - The path to the logs dirfileToUpgrade - Normally will be ignition.conf, but for a white label build, this file name will varyjava.lang.Exception