Package org.openbp.common.template

Examples of org.openbp.common.template.TemplateEngine


      context.setProperty("model", model);
      context.setProperty("item", item);
      context.setProperty("overwriteMode", context.getOverwriteMode());
      context.setProperty("settings", context.getGeneratorSettings());

      TemplateEngine engine = new TemplateEngine();
      engine.setOutputDir(context.getOutputRootDir());
      engine.setProperties(context.getProperties());
      engine.setClassLoader(getClassLoader());

      TemplateEngineResult result = engine.processTemplate(tn, null);
      if (result == null)
      {
        // No files generated, but also no error, so create a dummy
        result = new TemplateEngineResult();
      }
View Full Code Here

TOP

Related Classes of org.openbp.common.template.TemplateEngine

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.