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

kenneth_suter
03.01.2007 2b17083baf110a1f93cb1bb6cf29f2396ea7c66b
opends/src/quicksetup/org/opends/quicksetup/upgrader/RemoteBuildManager.java
@@ -319,16 +319,18 @@
        String line;
        try {
          while (null != (line = reader.readLine())) {
            try {
              Build build = parseBuildLine(line);
              builds.add(build);
            } catch (IllegalArgumentException iae) {
              StringBuffer msg = new StringBuffer()
                      .append("Error parsing line '")
                      .append(line)
                      .append("': ")
                      .append(iae.getMessage());
              LOG.log(Level.INFO, msg.toString());
            if (!isComment(line)) {
              try {
                Build build = parseBuildLine(line);
                builds.add(build);
              } catch (IllegalArgumentException iae) {
                StringBuffer msg = new StringBuffer()
                        .append("Error parsing line '")
                        .append(line)
                        .append("': ")
                        .append(iae.getMessage());
                LOG.log(Level.INFO, msg.toString());
              }
            }
          }
        } catch (IOException e) {
@@ -340,6 +342,10 @@
      return builds;
    }
    static private boolean isComment(String line) {
      return line != null && line.startsWith("#");
    }
    static private Build parseBuildLine(String line)
            throws IllegalArgumentException {
      String displayName = null;