use of org.jetbrains.jps.model.java.JpsJavaProjectExtension in project intellij-plugins by JetBrains.
the class JpsOsmorcProjectExtensionImpl method getDefaultBundlesOutputPath.
@NotNull
public static String getDefaultBundlesOutputPath(JpsProject project) {
JpsJavaExtensionService service = JpsJavaExtensionService.getInstance();
JpsJavaProjectExtension extension = service.getProjectExtension(project);
if (extension != null) {
String outputUrl = extension.getOutputUrl();
if (outputUrl != null) {
return JpsPathUtil.urlToPath(outputUrl) + "/bundles";
}
}
// this actually should never happen (only in tests)
return FileUtil.getTempDirectory();
}
Aggregations