use of org.eclipse.n4js.jsdoc2spec.adoc.SpecModuleFile in project n4js by eclipse.
the class TaskGenerateAdoc method getModulesCountTotal.
int getModulesCountTotal() {
File docRootDir = configAdocPage.getConfig().getDocRootDir();
String modulesDir = docRootDir + SEP + DIR_ADOC_GEN + SEP + DIR_MODULES;
List<String> moduleFileNames = FileSystem.getAdocFileNames(modulesDir);
Collections.sort(moduleFileNames);
int changedModuleFiles = 0;
int updatedModuleFiles = 0;
if (specChangeSet != null) {
for (SpecFile specFile : specChangeSet) {
if (specFile instanceof SpecModuleFile) {
changedModuleFiles++;
if (moduleFileNames.contains(specFile.getFile().getName())) {
updatedModuleFiles++;
}
}
}
}
return moduleFileNames.size() + changedModuleFiles - updatedModuleFiles;
}
Aggregations