Skip to content

Commit 67c9b55

Browse files
committed
Build: Fix detection of Eclipse Compiler Server (#31838)
It looks like Eclipse's compiler server recently changed something so our "eclipse detector" stopped working for it. I've updated the detector so it ought to work now.
1 parent bd4192b commit 67c9b55

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ Map<String, String> buildMetadataMap = buildMetadataValue.tokenize(';').collectE
113113
allprojects {
114114
project.ext {
115115
// for ide hacks...
116-
isEclipse = System.getProperty("eclipse.launcher") != null || gradle.startParameter.taskNames.contains('eclipse') || gradle.startParameter.taskNames.contains('cleanEclipse')
116+
isEclipse = System.getProperty("eclipse.launcher") != null || // Detects gradle launched from Eclipse's IDE
117+
System.getProperty("eclipse.application") != null || // Detects gradle launched from the Eclipse compiler server
118+
gradle.startParameter.taskNames.contains('eclipse') || // Detects gradle launched from the command line to do eclipse stuff
119+
gradle.startParameter.taskNames.contains('cleanEclipse')
117120
isIdea = System.getProperty("idea.active") != null || gradle.startParameter.taskNames.contains('idea') || gradle.startParameter.taskNames.contains('cleanIdea')
118121

119122
// for BWC testing

0 commit comments

Comments
 (0)