OPENDJ-1006 Upgrade: insert new line before displaying license text
- inserted new line before license display
- fixed the star display(first space was removed by wrapText())
| | |
| | | { |
| | | if (LicenseFile.exists()) |
| | | { |
| | | context.notify(Message.raw(LicenseFile.getText())); |
| | | context.notify(Message.raw("\n" + LicenseFile.getText())); |
| | | |
| | | // If the user asks for no-prompt. We just display the license text. |
| | | // User doesn't asks for no-prompt. We just display the license text |
| | |
| | | 4); |
| | | break; |
| | | case NOTICE_CALLBACK: |
| | | println(Style.NOTICE, Message.raw(fnc.getMessage()), 0); |
| | | println(Style.NOTICE, Message.raw(fnc.getMessage()), 1); |
| | | break; |
| | | default: |
| | | LOG.log(SEVERE, "Unsupported message type: " |
| | |
| | | out.println(); |
| | | break; |
| | | case NOTICE: |
| | | out.println(wrapText(" * " + msg, MAX_LINE_WIDTH, indent)); |
| | | out.println(wrapText("* " + msg, MAX_LINE_WIDTH, indent)); |
| | | break; |
| | | case ERROR: |
| | | out.println(); |