use of org.jetbrains.jps.model.library.JpsLibraryCollection in project intellij-elixir by KronicDeth.
the class Builder method erlangSdkNameToErlExePath.
@NotNull
private static String erlangSdkNameToErlExePath(@NotNull String erlangSdkName, @NotNull JpsModule module) throws LibraryNotFound, FileNotFoundException, AccessDeniedException {
JpsLibraryCollection libraryCollection = module.getProject().getModel().getGlobal().getLibraryCollection();
JpsLibrary erlangSdkLibrary = libraryCollection.findLibrary(erlangSdkName);
String erlExePath;
if (erlangSdkLibrary != null) {
erlExePath = erlangSdkLibraryToErlExePath(erlangSdkLibrary);
} else {
throw new LibraryNotFound(erlangSdkName);
}
return erlExePath;
}
Aggregations