Package cn.org.rapid_framework.generator.util

Examples of cn.org.rapid_framework.generator.util.GeneratorException.addAll()


    List<File> processedTemplateRootDirs = processTemplateRootDirs();
   
    for(int i = 0; i < processedTemplateRootDirs.size(); i++) {
      File templateRootDir = (File)processedTemplateRootDirs.get(i);
      List<Exception> exceptions = scanTemplatesAndProcess(templateRootDir,processedTemplateRootDirs,templateModel,filePathModel,isDelete);
      ge.addAll(exceptions);
    }
    if(!ge.exceptions.isEmpty()) throw ge;
  }

    /**
 
View Full Code Here


    if(templateRootDirs.size() == 0) throw new IllegalStateException("'templateRootDirs' cannot empty");
    GeneratorException ge = new GeneratorException("generator occer error, Generator BeanInfo:"+BeanHelper.describe(this));
    for(int i = 0; i < this.templateRootDirs.size(); i++) {
      File templateRootDir = (File)templateRootDirs.get(i);
      List<Exception> exceptions = scanTemplatesAndProcess(templateRootDir,templateModel,filePathModel,isDelete);
      ge.addAll(exceptions);
    }
    if(!ge.exceptions.isEmpty()) throw ge;
  }
 
  private List<Exception> scanTemplatesAndProcess(File templateRootDir, Map templateModel,Map filePathModel,boolean isDelete) throws Exception {
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.