Package com.scooterframework.tools.common

Examples of com.scooterframework.tools.common.Generator.generate()


      String vliPath = templateRoot + File.separator +
              "view" + File.separator +
              "security" + File.separator +
              "login.tmpl";
    Generator vli = new ViewLoginGenerator(vliPath, allProps, signonControllerName, "login");
    vli.generate();
     
      String vloPath = templateRoot + File.separator +
              "view" + File.separator +
              "security" + File.separator +
              "logout.tmpl";
View Full Code Here


      String vloPath = templateRoot + File.separator +
              "view" + File.separator +
              "security" + File.separator +
              "logout.tmpl";
    Generator vlo = new ViewLogoutGenerator(vloPath, allProps, signonControllerName, "logout");
    vlo.generate();
     
      String vmaPath = templateRoot + File.separator +
              "view" + File.separator +
              "security" + File.separator +
              "signon_main.tmpl";
View Full Code Here

      String vmaPath = templateRoot + File.separator +
              "view" + File.separator +
              "security" + File.separator +
              "signon_main.tmpl";
    Generator vma = new ViewMainGenerator(vmaPath, allProps, signonControllerName, "main");
    vma.generate();
     
      String scPath = templateRoot + File.separator +
              "controller" + File.separator +
              "SignonController.tmpl";
    Generator sc = new ControllerSignonGenerator(scPath, allProps, signonControllerName);
View Full Code Here

     
      String scPath = templateRoot + File.separator +
              "controller" + File.separator +
              "SignonController.tmpl";
    Generator sc = new ControllerSignonGenerator(scPath, allProps, signonControllerName);
    sc.generate();
     
      String shdPath = templateRoot + File.separator +
              "view" + File.separator +
              "security" + File.separator +
              "header.tmpl";
View Full Code Here

      String shdPath = templateRoot + File.separator +
              "view" + File.separator +
              "security" + File.separator +
              "header.tmpl";
    Generator shd = new SecureHeaderGenerator(shdPath, allProps);
    shd.generate();
     
      String sdePath = templateRoot + File.separator +
              "view" + File.separator +
              "security" + File.separator +
              "decorators.xml.tmpl";
View Full Code Here

      String sdePath = templateRoot + File.separator +
              "view" + File.separator +
              "security" + File.separator +
              "decorators.xml.tmpl";
    Generator sde = new SecureXMLDecoratorGenerator(sdePath, allProps);
    sde.generate();
    }

    private static void log(Object o) {
    System.out.println(o);
    }
View Full Code Here

      //generate application controller
        String cagPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ApplicationController.tmpl";
      Generator cag = new ControllerApplicationGenerator(cagPath, allProps);
      cag.generate(false);

      //generate controller
        String csgPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ControllerScaffold.tmpl";
View Full Code Here

      //generate controller
        String csgPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ControllerScaffold.tmpl";
      Generator csg = new ControllerScaffoldGenerator(csgPath, allProps, connName, controller, model, table);
      csg.generate();
     
        String cstgPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ControllerScaffoldTest.tmpl";
      Generator cstg = new ControllerScaffoldTestGenerator(cstgPath, allProps, connName, controller, model, table);
View Full Code Here

     
        String cstgPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ControllerScaffoldTest.tmpl";
      Generator cstg = new ControllerScaffoldTestGenerator(cstgPath, allProps, connName, controller, model, table);
      cstg.generate();

      //generate model
      if (!enhance) {
          String mgPath = templateRoot + File.separator +
                  "model" + File.separator +
View Full Code Here

      if (!enhance) {
          String mgPath = templateRoot + File.separator +
                  "model" + File.separator +
                  "ModelHelper.tmpl";
        Generator mcg = new ModelHelperGenerator(mgPath, allProps, connName, model, table, enhance);
        mcg.generate();
      }
     
        String mgPath = templateRoot + File.separator +
                "model" + File.separator +
                "Model.tmpl";
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.