You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/EclipseConventionPlugin.java
+10
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
importorg.gradle.api.Plugin;
16
16
importorg.gradle.api.Project;
17
17
importorg.gradle.api.Transformer;
18
+
importorg.gradle.api.invocation.Gradle;
18
19
importorg.gradle.api.plugins.JavaBasePlugin;
19
20
importorg.gradle.api.plugins.JavaPluginExtension;
20
21
importorg.gradle.api.tasks.Copy;
@@ -38,6 +39,15 @@ public class EclipseConventionPlugin implements Plugin<Project> {
38
39
@Override
39
40
publicvoidapply(Projectproject) {
40
41
project.getPlugins().apply(EclipsePlugin.class);
42
+
Gradlegradle = project.getGradle();
43
+
44
+
booleanisEclipse = project.getProviders().systemProperty("eclipse.launcher").isPresent() || // Gradle launched from Eclipse
45
+
project.getProviders().systemProperty("eclipse.application").isPresent() || // Gradle launched from the Eclipse compiler server
46
+
gradle.getStartParameter().getTaskNames().contains("eclipse") || // Gradle launched from the command line to do eclipse stuff
0 commit comments