public void renderToOutput(OutputTool output, String destdir) throws Exception { // expect just one scope to be set on the way in but now also set higher levels of visibility if ("true".equals(properties.getProperty("privateScope"))) properties.setProperty("packageScope", "true"); if ("true".equals(properties.getProperty("packageScope"))) properties.setProperty("protectedScope", "true"); if ("true".equals(properties.getProperty("protectedScope"))) properties.setProperty("publicScope", "true"); if (templateEngine != null) { GroovyDocWriter writer = new GroovyDocWriter(this, output, templateEngine, properties); GroovyRootDoc rootDoc = rootDocBuilder.getRootDoc(); writer.writeRoot(rootDoc, destdir); writer.writePackages(rootDoc, destdir); writer.writeClasses(rootDoc, destdir); } else { throw new UnsupportedOperationException("No template engine was found"); } }
public void renderToOutput(OutputTool output, String destdir) throws Exception { // expect just one scope to be set on the way in but now also set higher levels of visibility if ("true".equals(properties.getProperty("privateScope"))) properties.setProperty("packageScope", "true"); if ("true".equals(properties.getProperty("packageScope"))) properties.setProperty("protectedScope", "true"); if ("true".equals(properties.getProperty("protectedScope"))) properties.setProperty("publicScope", "true"); if (templateEngine != null) { GroovyDocWriter writer = new GroovyDocWriter(this, output, templateEngine, properties); GroovyRootDoc rootDoc = rootDocBuilder.getRootDoc(); writer.writeRoot(rootDoc, destdir); writer.writePackages(rootDoc, destdir); writer.writeClasses(rootDoc, destdir); } else { throw new UnsupportedOperationException("No template engine was found"); } }
public void renderToOutput(OutputTool output, String destdir) throws Exception { // expect just one scope to be set on the way in but now also set higher levels of visibility if ("true".equals(properties.getProperty("privateScope"))) properties.setProperty("packageScope", "true"); if ("true".equals(properties.getProperty("packageScope"))) properties.setProperty("protectedScope", "true"); if ("true".equals(properties.getProperty("protectedScope"))) properties.setProperty("publicScope", "true"); if (templateEngine != null) { GroovyDocWriter writer = new GroovyDocWriter(this, output, templateEngine, properties); GroovyRootDoc rootDoc = rootDocBuilder.getRootDoc(); writer.writeRoot(rootDoc, destdir); writer.writePackages(rootDoc, destdir); writer.writeClasses(rootDoc, destdir); } else { throw new UnsupportedOperationException("No template engine was found"); } }
public void renderToOutput(OutputTool output, String destdir) throws Exception { if (templateEngine != null) { GroovyDocWriter writer = new GroovyDocWriter(this, output, templateEngine); GroovyRootDoc rootDoc = rootDocBuilder.getRootDoc(); writer.writeRoot(rootDoc, destdir); writer.writePackages(rootDoc, destdir); writer.writeClasses(rootDoc, destdir); } else { throw new UnsupportedOperationException("No template engine was found"); } }
public void renderToOutput(OutputTool output, String destdir) throws Exception { if (templateEngine != null) { GroovyDocWriter writer = new GroovyDocWriter(this, output, templateEngine); GroovyRootDoc rootDoc = rootDocBuilder.getRootDoc(); writer.writeRoot(rootDoc, destdir); writer.writePackages(rootDoc, destdir); writer.writeClasses(rootDoc, destdir); } else { throw new UnsupportedOperationException("No template engine was found"); } }
public void renderToOutput(OutputTool output, String destdir) throws Exception { if (templateEngine != null) { GroovyDocWriter writer = new GroovyDocWriter(this, output, templateEngine); GroovyRootDoc rootDoc = rootDocBuilder.getRootDoc(); writer.writeRoot(rootDoc, destdir); writer.writePackages(rootDoc, destdir); writer.writeClasses(rootDoc, destdir); } else { throw new UnsupportedOperationException("No template engine was found"); } }