Class IdeDetection
java.lang.Object
net.neoforged.moddevgradle.internal.utils.IdeDetection
Utilities for trying to detect in which IDE Gradle is running.
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic booleanstatic booleanisVsCode()
-
Method Details
-
isIntelliJ
public static boolean isIntelliJ()- Returns:
- true if IntelliJ is running Gradle. This is true both during sync and execution of other Gradle tasks.
-
isIntelliJSync
public static boolean isIntelliJSync()- Returns:
- true if IntelliJ is syncing its project model with Gradle.
-
isEclipse
public static boolean isEclipse()- Returns:
- true if running under Eclipse (either Task execution or otherwise)
-
isVsCode
public static boolean isVsCode()- Returns:
- true if running under Visual Studio Code (Applies to task execution and sync)
-