}
private Optional<ModuleDescriptor> getModuleDescriptor(File currentDirectory) {
File restXProjectDescriptor = new File(currentDirectory, "md.restx.json");
if (restXProjectDescriptor.exists()) {
RestxJsonSupport restxJsonSupport = new RestxJsonSupport();
try {
return Optional.of(restxJsonSupport.parse(restXProjectDescriptor.toPath()));
} catch (IOException e) {
printError("Failed to read md.restx.json", e);
}
}
File mavenProjectDescriptor = new File(currentDirectory, "pom.xml");