}
}
protected void scanRoot(VirtualFile processArchiveRoot, final String[] additionalResourceSuffixes, Map<String, byte[]> resources) {
try {
List<VirtualFile> processes = processArchiveRoot.getChildrenRecursively(new VirtualFileFilter() {
public boolean accepts(VirtualFile file) {
return file.isFile() && ProcessApplicationScanningUtil.isDeployable(file.getName(), additionalResourceSuffixes);
}
});
for (final VirtualFile process : processes) {
addResource(process, processArchiveRoot, resources);
// find diagram(s) for process
List<VirtualFile> diagrams = process.getParent().getChildren(new VirtualFileFilter() {
public boolean accepts(VirtualFile file) {
return ProcessApplicationScanningUtil.isDiagram(file.getName(), process.getName());
}
});
for (VirtualFile diagram : diagrams) {