Examples of VelocityUtil


Examples of com.dotmarketing.util.VelocityUtil

      for (ContainerStructure cs : csList) {
        if(cs.getStructureId().equals(structureId)) {
          if(request.getSession()==null) {
          }
          VelocityUtil vu = new VelocityUtil();
          String parsedCode = vu.parseVelocity(cs.getCode(), ctx);
          return parsedCode;
        }
      }

    } catch (Exception e) {
View Full Code Here

Examples of com.utils.VelocityUtil

        this.config = config;
        super.init(config);
        this.application = config.getServletContext();
        this.path_app_root = application.getRealPath("/");

        velocity = new VelocityUtil();
        velocity.init(path_app_root);


        if (application.getAttribute(APP_ATT_APP_CONF) == null) {
            this.conf = new com.conf.Main(this.path_app_root + this.path_file_conf);
View Full Code Here

Examples of flex2.compiler.mxml.gen.VelocityUtil

    SourceCodeBuffer out = new SourceCodeBuffer();

    try
    {
      VelocityUtil util = new VelocityUtil(TEMPLATE_PATH, mxmlConfiguration.debug(), out, null);
      VelocityContext vc = VelocityManager.getCodeGenContext(util);
            vc.put(ATEMBEDS_KEY, atEmbeds);
      template.merge(vc, out);
    }
    catch (Exception e)
View Full Code Here

Examples of flex2.compiler.mxml.gen.VelocityUtil

    SourceCodeBuffer out = new SourceCodeBuffer();

    try
    {
      VelocityUtil util = new VelocityUtil(TEMPLATE_PATH, mxmlConfiguration.debug(), out, null);
      VelocityContext vc = VelocityManager.getCodeGenContext(util);
      vc.put(STYLEDEFLIST_KEY, styleDefList);
            // vc.put(PACKAGENAME_KEY, packageName); TODO: get packagename working
      vc.put(CLASSNAME_KEY, className);
      template.merge(vc, out);
View Full Code Here

Examples of flex2.compiler.mxml.gen.VelocityUtil

        DualModeLineNumberMap lineNumberMap = new DualModeLineNumberMap(source.getNameForReporting(), genFileName);
        styleModule.setLineNumberMap(lineNumberMap);

        try
        {
            VelocityUtil velocityUtil = new VelocityUtil(TEMPLATE_PATH, configuration.debug(),
                                                         sourceCodeBuffer, lineNumberMap);
            VelocityContext velocityContext = VelocityManager.getCodeGenContext(velocityUtil);
            velocityContext.put(STYLE_MODULE_KEY, styleModule);
            template.merge(velocityContext, sourceCodeBuffer);
        }
View Full Code Here

Examples of flex2.compiler.mxml.gen.VelocityUtil

    try
    {
            DualModeLineNumberMap lineMap = new DualModeLineNumberMap(source.getNameForReporting(), genFileName);
            doc.setLineNumberMap(lineMap);

            VelocityUtil util = new VelocityUtil(CLASSDEF_TEMPLATE_PATH, mxmlConfiguration.debug(), out, lineMap);
      VelocityContext vc = VelocityManager.getCodeGenContext(util);
      vc.put(DOC_KEY, doc);
      // pass whether to care for comments or not
      vc.put(COMMENTS_KEY, processComments);
   
View Full Code Here

Examples of flex2.compiler.mxml.gen.VelocityUtil

        SourceCodeBuffer out = new SourceCodeBuffer();

        try
        {
            VelocityUtil util = new VelocityUtil(TEMPLATE_PATH, false, out, null);
            VelocityContext velocityContext = VelocityManager.getCodeGenContext(util);
            velocityContext.put(DATA_BINDING_INFO_KEY, dataBindingInfo);
            template.merge(velocityContext, out);
        }
        catch (Exception e)
View Full Code Here

Examples of flex2.compiler.mxml.gen.VelocityUtil

    SourceCodeBuffer out = new SourceCodeBuffer();

    try
    {
      VelocityUtil util = new VelocityUtil(TEMPLATE_PATH, mxmlConfiguration.debug(), out, null);
      VelocityContext vc = VelocityManager.getCodeGenContext(util);
            vc.put(ATEMBEDS_KEY, atEmbeds);
      template.merge(vc, out);
    }
    catch (Exception e)
View Full Code Here

Examples of flex2.compiler.mxml.gen.VelocityUtil

    SourceCodeBuffer out = new SourceCodeBuffer();

    try
    {
      VelocityUtil util = new VelocityUtil(TEMPLATE_PATH, mxmlConfiguration.debug(), out, null);
      VelocityContext vc = VelocityManager.getCodeGenContext(util);
      vc.put(STYLEDEFLIST_KEY, styleDefList);
            // vc.put(PACKAGENAME_KEY, packageName); TODO: get packagename working
      vc.put(CLASSNAME_KEY, className);
      template.merge(vc, out);
View Full Code Here

Examples of flex2.compiler.mxml.gen.VelocityUtil

    try
    {
            DualModeLineNumberMap lineMap = new DualModeLineNumberMap(source.getNameForReporting(), genFileName);
            doc.setLineNumberMap(lineMap);

            VelocityUtil util = new VelocityUtil(CLASSDEF_TEMPLATE_PATH, mxmlConfiguration.debug(), out, lineMap);
      VelocityContext vc = VelocityManager.getCodeGenContext(util);
      vc.put(DOC_KEY, doc);
      // pass whether to care for comments or not
      vc.put(COMMENTS_KEY, processComments);
   
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.