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 {