| | |
| | | // Main process |
| | | try |
| | | { |
| | | // Creates the log file. |
| | | UpgradeLog.initLogFileHandler(); |
| | | |
| | | // Upgrade's context. |
| | | UpgradeContext context = |
| | |
| | | context.setInteractiveMode(isInteractive()); |
| | | context.setForceUpgradeMode(isForceUpgrade()); |
| | | |
| | | // Creates the log file. |
| | | UpgradeLog.initLogFileHandler(); |
| | | |
| | | // Starts upgrade. |
| | | Upgrade.upgrade(context); |
| | | } |
| | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | LOG.log(SEVERE, ex.getMessage()); |
| | | LOG.log(SEVERE, ERR_UPGRADE_MAIN_UPGRADE_PROCESS.get(ex |
| | | .getMessage()).toString()); |
| | | println(Style.ERROR, ERR_UPGRADE_MAIN_UPGRADE_PROCESS.get(ex |
| | | .getMessage()), 0); |
| | | |