public TemplateFactory()

in report-builder/src/jetbrains/coverage/report/impl/html/TemplateFactory.java [40:57]


  public TemplateFactory() throws IOException {
    Configuration configuration = new Configuration();
    configuration.setTemplateLoader(new ClassTemplateLoader(getClass(), "/htmlTemplates"));

    try {
      configuration.setSetting(Configuration.CACHE_STORAGE_KEY, "strong:420, soft:400");
      configuration.setSetting(Configuration.TEMPLATE_UPDATE_DELAY_KEY, "0");
    } catch (TemplateException e) {
      System.err.println("Failed to set configuration properties: " + e.getMessage());
      e.printStackTrace();
    }

    myNamespacesTeamplate = getTemplateLoop(configuration, "namespaces.ftl");
    myModulesTemplate = getTemplateLoop(configuration, "modules.ftl");
    myNamespaceIndexTemplate = getTemplateLoop(configuration, "namespaceIndex.ftl");
    myClassTemplate = getTemplateLoop(configuration, "classCoverage.ftl");
    myEmpty = getTemplateLoop(configuration, "empty.ftl");
  }