use of org.jetbrains.jps.model.library.JpsLibrary in project intellij-elixir by KronicDeth.
the class Builder method prependCodePaths.
private static void prependCodePaths(@NotNull GeneralCommandLine commandLine, @NotNull JpsSdk sdk) {
JpsLibrary jpsLibrary = sdk.getParent();
List<JpsLibraryRoot> compiledRoots = jpsLibrary.getRoots(JpsOrderRootType.COMPILED);
for (JpsLibraryRoot compiledRoot : compiledRoots) {
String url = compiledRoot.getUrl();
assert url.startsWith(URL_PREFIX);
String path = url.substring(URL_PREFIX.length(), url.length());
commandLine.addParameters("-pa", path);
}
}
Aggregations