Пример #1
0
  @Override
  public String doConvert() {
    final InfoLines msgs = new InfoLines();

    try {
      final Processor proc = getProc();

      proc.parse();

      if (getGenerate()) {
        proc.generateZoneinfoFiles(
            Util.buildPath(true, getRootdir(), "/", "zoneinfo"), true); // doLinks
      }

      if (getCompare()) {
        proc.compare(msgs);
      }

      for (final String msg : msgs) {
        System.out.print(msg);
      }
    } catch (final Throwable t) {
      t.printStackTrace();
      msgs.exceptionMsg(t);
    }

    return msgs.toString();
  }