Class IdeConfigurer
- java.lang.Object
-
- org.spongepowered.gradle.vanilla.internal.util.IdeConfigurer
-
public final class IdeConfigurer extends java.lang.ObjectConfigures different IDEs when applicable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceIdeConfigurer.IdeImportAction
-
Constructor Summary
Constructors Constructor Description IdeConfigurer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidapply(org.gradle.api.Project project, IdeConfigurer.IdeImportAction toPerform)Applies the specified configuration action to configure IDE projects.static booleanisEclipseImport()Get whether this Gradle invocation is from an Eclipse project import.static booleanisIdeaImport()Get whether Gradle is being invoked through IntelliJ IDEA.
-
-
-
Method Detail
-
isIdeaImport
public static boolean isIdeaImport()
Get whether Gradle is being invoked through IntelliJ IDEA.This can be through a project import, or a task execution.
- Returns:
- whether this is an IntelliJ-based invocation
-
isEclipseImport
public static boolean isEclipseImport()
Get whether this Gradle invocation is from an Eclipse project import.- Returns:
- whether an eclipse import is ongoing
-
apply
public static void apply(org.gradle.api.Project project, IdeConfigurer.IdeImportAction toPerform)Applies the specified configuration action to configure IDE projects.This does not apply the IDEs' respective plugins, but will perform actions when those plugins are applied.
- Parameters:
project- project to apply totoPerform- the actions to perform
-
-