IFile aModuleFile = (IFile) modules.get(i);
String moduleName = Util.getQualifiedName(aModuleFile);
IFolder moduleOutputFolder = folder.getFolder(moduleName);
if (moduleOutputFolder.exists()) {
moduleOutputFolder.delete(true, new SubProgressMonitor(monitor, (i * 2) + 1));
moduleOutputFolder.refreshLocal(IResource.DEPTH_ONE, new SubProgressMonitor(monitor, (i * 2) + 2));
}
}
} finally {
monitor.done();
}