public void writeRootDocToOutput(GroovyRootDoc rootDoc, String destdir) throws Exception { Iterator<String> templates = templateEngine.docTemplatesIterator(); while (templates.hasNext()) { String template = templates.next(); String destFileName = destdir + FS + tool.getFile(template); log.debug("Generating " + destFileName); if (hasBinaryExtension(template)) { templateEngine.copyBinaryResource(template, destFileName); } else { String renderedSrc = templateEngine.applyRootDocTemplate(template, rootDoc); output.writeToOutput(destFileName, renderedSrc, properties.getProperty("fileEncoding")); } } }
public void writeRootDocToOutput(GroovyRootDoc rootDoc, String destdir) throws Exception { Iterator<String> templates = templateEngine.docTemplatesIterator(); while (templates.hasNext()) { String template = templates.next(); String destFileName = destdir + FS + tool.getFile(template); System.out.println("Generating " + destFileName); if (hasBinaryExtension(template)) { templateEngine.copyBinaryResource(template, destFileName); } else { String renderedSrc = templateEngine.applyRootDocTemplate(template, rootDoc); output.writeToOutput(destFileName, renderedSrc); } } }
public void writeRootDocToOutput(GroovyRootDoc rootDoc, String destdir) throws Exception { Iterator<String> templates = templateEngine.docTemplatesIterator(); while (templates.hasNext()) { String template = templates.next(); String destFileName = destdir + FS + tool.getFile(template); System.out.println("Generating " + destFileName); if (hasBinaryExtension(template)) { templateEngine.copyBinaryResource(template, destFileName); } else { String renderedSrc = templateEngine.applyRootDocTemplate(template, rootDoc); output.writeToOutput(destFileName, renderedSrc); } } }
public void writeRootDocToOutput(GroovyRootDoc rootDoc, String destdir) throws Exception { Iterator<String> templates = templateEngine.docTemplatesIterator(); while (templates.hasNext()) { String template = templates.next(); String destFileName = destdir + FS + tool.getFile(template); log.debug("Generating " + destFileName); if (hasBinaryExtension(template)) { templateEngine.copyBinaryResource(template, destFileName); } else { String renderedSrc = templateEngine.applyRootDocTemplate(template, rootDoc); output.writeToOutput(destFileName, renderedSrc, properties.getProperty("fileEncoding")); } } }
public void writeRootDocToOutput(GroovyRootDoc rootDoc, String destdir) throws Exception { Iterator<String> templates = templateEngine.docTemplatesIterator(); while (templates.hasNext()) { String template = templates.next(); String destFileName = destdir + FS + tool.getFile(template); log.debug("Generating " + destFileName); if (hasBinaryExtension(template)) { templateEngine.copyBinaryResource(template, destFileName); } else { String renderedSrc = templateEngine.applyRootDocTemplate(template, rootDoc); output.writeToOutput(destFileName, renderedSrc); } } }