Skip to content

Commit

Permalink
Fixing 2024.2 code using API changed to internal
Browse files Browse the repository at this point in the history
  • Loading branch information
m0rkeulv committed Jul 24, 2024
1 parent c9d0efc commit c91e78b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
import org.jetbrains.jps.incremental.messages.ProgressMessage;
import org.jetbrains.jps.model.java.JpsJavaExtensionService;
import org.jetbrains.jps.model.java.JpsJavaProjectExtension;
import org.jetbrains.jps.model.java.impl.JavaProjectExtensionRole;
import org.jetbrains.jps.model.library.sdk.JpsSdk;
import org.jetbrains.jps.model.module.JpsModule;
import org.jetbrains.jps.model.module.JpsModuleSourceRoot;
Expand Down Expand Up @@ -222,7 +221,7 @@ public String getModuleDefaultCompileOutputPath() {
// return JpsPathUtil.urlToPath(outputRootUrl);

// ... so we reach directly down to the project and grab its output path.
final JpsJavaProjectExtension projectExtension = module.getProject().getContainer().getChild(JavaProjectExtensionRole.INSTANCE);
final JpsJavaProjectExtension projectExtension = JpsJavaExtensionService.getInstance().getProjectExtension(module.getProject());
if (projectExtension != null) {
final String url = projectExtension.getOutputUrl();
if (url != null) {
Expand Down

0 comments on commit c91e78b

Please sign in to comment.