Package com.scooterframework.tools.common

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


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

      controller = getControllerName(useImplicitAppName, args, false);
      String[] actions = null;
      if (useImplicitAppName) {
        if (args.length == 2) {
View Full Code Here


     
        String cgPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ActionController.tmpl";
      Generator cg = new ControllerGenerator(cgPath, allProps, controller, actions);
      cg.generate();

        String ctgPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ActionControllerTest.tmpl";
      Generator ctg = new ControllerTestGenerator(ctgPath, allProps, controller, actions);
View Full Code Here

        String ctgPath = templateRoot + File.separator +
                "controller" + File.separator +
                "ActionControllerTest.tmpl";
      Generator ctg = new ControllerTestGenerator(ctgPath, allProps, controller, actions);
      ctg.generate();

      //generate view
        String vigPath = templateRoot + File.separator +
                "view" + File.separator +
                "action.tmpl";
View Full Code Here

                "action.tmpl";
      int views = actions.length;
      Generator vig = null;
      for (int i = 0; i < views; i++) {
        vig = new ViewActionGenerator(vigPath, allProps, controller, actions[i]);
        vig.generate();
      }
    }
    else if ("model".equals(typeName)) {
      if (!enhance) {
          String mgPath = templateRoot + 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

     
        String mgPath = templateRoot + File.separator +
                "model" + File.separator +
                "Model.tmpl";
      Generator mg = new ModelGenerator(mgPath, allProps, connName, model, table, enhance);
      mg.generate();
     
        String mtgPath = templateRoot + File.separator +
                "model" + File.separator +
                "ModelTest.tmpl";
      Generator mtg = new ModelTestGenerator(mtgPath, allProps, connName, model, table, enhance);
View Full Code Here

     
        String mtgPath = templateRoot + File.separator +
                "model" + File.separator +
                "ModelTest.tmpl";
      Generator mtg = new ModelTestGenerator(mtgPath, allProps, connName, model, table, enhance);
      mtg.generate();
    }
    else {
      throw new Exception("Type name \"" + typeName + "\" is not supported.");
    }
  }
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.