protected void handlerModuleResource(Local local, FileObject rootObject, FileObject thisFolder, FileObject resource) throws IOException { FileName fileName = resource.getName(); String bn = fileName.getBaseName(); if (logger.isDebugEnabled()) { logger.debug("handlerModuleResource baseName=" + bn + "; file=" + fileName.getFileObject()); } if (bn.endsWith(".class") && bn.indexOf('$') == -1) { addModuleClass(local, rootObject, thisFolder, resource); } else if (bn.startsWith("applicationContext") && bn.endsWith(".xml")) { addModuleContext(local, rootObject, thisFolder, resource); } else if (bn.startsWith("messages") && (bn.endsWith(".xml") || bn.endsWith(".properties"))) { addModuleMessage(local, rootObject, thisFolder, resource); } }
int oldSize = local.moduleResourceList.size(); deepScanImpl(local, rootObject, rootObject); afterScanning(local);
protected void deepScanImpl(Local local, FileObject root, FileObject target) throws IOException { if (CONTROLLERS.equals(target.getName().getBaseName())) { checkModuleResourceCandidate(local, root, target, target); } else { FileObject[] children = target.getChildren(); for (FileObject child : children) { if (child.getType().hasChildren()) { deepScanImpl(local, root, child); } } } }
for (FileObject child : children) { if (child.getType().hasContent() && !child.getType().hasChildren()) { handlerModuleResource(local, root, candidate, child); checkModuleResourceCandidate(local, root, topModuleFile, child);
for (FileObject child : children) { if (child.getType().hasContent() && !child.getType().hasChildren()) { handlerModuleResource(local, root, candidate, child); checkModuleResourceCandidate(local, root, topModuleFile, child);
protected void handlerModuleResource(Local local, FileObject rootObject, FileObject thisFolder, FileObject resource) throws IOException { FileName fileName = resource.getName(); String bn = fileName.getBaseName(); if (logger.isDebugEnabled()) { logger.debug("handlerModuleResource baseName=" + bn + "; file=" + fileName.getFileObject()); } if (bn.endsWith(".class") && bn.indexOf('$') == -1) { addModuleClass(local, rootObject, thisFolder, resource); } else if (bn.startsWith("applicationContext") && bn.endsWith(".xml")) { addModuleContext(local, rootObject, thisFolder, resource); } else if (bn.startsWith("messages") && (bn.endsWith(".xml") || bn.endsWith(".properties"))) { addModuleMessage(local, rootObject, thisFolder, resource); } }
protected void deepScanImpl(Local local, FileObject root, FileObject target) throws IOException { if (CONTROLLERS.equals(target.getName().getBaseName())) { checkModuleResourceCandidate(local, root, target, target); } else { FileObject[] children = target.getChildren(); for (FileObject child : children) { if (child.getType().hasChildren()) { deepScanImpl(local, root, child); } } } }
int oldSize = local.moduleResourceList.size(); deepScanImpl(local, rootObject, rootObject); afterScanning(local);