mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
20.59.2006 41c324856937b9f0d2f5a5c85ee5687dee1747b5
refs
author jvergara <jvergara@localhost>
Monday, November 20, 2006 17:59 +0100
committer jvergara <jvergara@localhost>
Monday, November 20, 2006 17:59 +0100
commit41c324856937b9f0d2f5a5c85ee5687dee1747b5
tree d6b822ab166c42ad4f1cf72f0afcc1c566f7e542 tree | zip | gz
parent fd613fa74d7b9fa53c9f03a3d1c43676d38a7bc9 view | diff
The following modifications are targeted to improve the output displayed by the Java WebStart Setup.  There were two issues with the existing code:

1. We used to pass the parameter 'overallPercent' of the validating method of WebStartDownloader to calculate the downloaded percentage. This is wrong as this value corresponds to the validation percentage. This produced to sometimes display a downloaded 0 % while we were validating the files.

2. We did not provide any additional feedback while we were validating a jar file. This produced the displayed message to be stuck at 'Downloading: 33 % Completed' or 'Downloading: 66 % Completed'.


The fix for the first issue is trivial: the value indicating the percentage of downloaded files is not modified in the validating method nor in the upgradingArchive method of the WebStartDownloader class.

The fix for the second issue consists of adding some interfaces to WebStartDownloader to know whether we are downloading a jar file, validating a jar file or upgrading a jar file. In addition to that two methods have been added to know how much of the current jar file has been validated or upgraded. This way we can have know a more complete (and lively) message during download. When we are just downloading a jar file the message will stay the same. For example:


'Downloading: 23 % Completed'

But when we are validating a jar file the message will be:

'Downloading: 33% Completed - Validating file: 89 % Completed.
3 files modified
113 ■■■■ changed files
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartDownloader.java 77 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/installer/webstart/WebStartInstaller.java 34 ●●●● diff | view | raw | blame | history
opendj-sdk/opends/src/quicksetup/org/opends/quicksetup/resources/Resources.properties 2 ●●●●● diff | view | raw | blame | history