Better checking for isMavenModule()
This commit is contained in:
+3
-5
@@ -257,11 +257,9 @@ public class ConfigureKotlinLibraryNotificationProvider implements EditorNotific
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static boolean isMavenModule(@NotNull Module module) {
|
private static boolean isMavenModule(@NotNull Module module) {
|
||||||
for (VirtualFile root : ModuleRootManager.getInstance(module).getContentRoots()) {
|
// This constant could be acquired from MavenProjectsManager, but we don't want to depend on the Maven plugin...
|
||||||
if (root.findChild("pom.xml") != null) return true;
|
// See MavenProjectsManager.isMavenizedModule()
|
||||||
}
|
return "true".equals(module.getOptionValue("org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule"));
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static class ChoosePathDialog extends DialogWrapper {
|
private static class ChoosePathDialog extends DialogWrapper {
|
||||||
|
|||||||
Reference in New Issue
Block a user