Updated the upgrade build page parser to accept comment lines begining with a '#' character. I've tested that the parser works with the following:
#Here's a comment
OpenDS .08 https://opends.dev.java.net/files/xxx Release Build
OpenDS 0.1 Build 037 https://opends.dev.java.net/files/documents/4926/56870/OpenDS-0.1-build037.zip Weekly Build
OpenDS 0.1 Build 036 https://opends.dev.java.net/files/documents/4926/56015/OpenDS-0.1-build036.zip Weekly Build
OpenDS 0.1 Build 035 https://opends.dev.java.net/files/documents/4926/55351/OpenDS-0.1-build035.zip Weekly Build
Latest Daily Build http://www.opends.org/daily-builds/latest/OpenDS/build/package/OpenDS-0.1.zip Daily Buildconfiguration during install
| | |
| | | String line; |
| | | try { |
| | | while (null != (line = reader.readLine())) { |
| | | if (!isComment(line)) { |
| | | try { |
| | | Build build = parseBuildLine(line); |
| | | builds.add(build); |
| | |
| | | LOG.log(Level.INFO, msg.toString()); |
| | | } |
| | | } |
| | | } |
| | | } catch (IOException e) { |
| | | LOG.log(Level.INFO, "error", e); |
| | | } |
| | |
| | | return builds; |
| | | } |
| | | |
| | | static private boolean isComment(String line) { |
| | | return line != null && line.startsWith("#"); |
| | | } |
| | | |
| | | static private Build parseBuildLine(String line) |
| | | throws IllegalArgumentException { |
| | | String displayName = null; |