aboutsummaryrefslogtreecommitdiffstats
path: root/build.gradle
diff options
context:
space:
mode:
authorPhilippe Perrin <philippe.perrin@sonarsource.com>2021-10-01 09:57:26 +0200
committersonartech <sonartech@sonarsource.com>2021-10-01 20:03:19 +0000
commite792b53ccf010bebc6b5d477476c250183a4be3b (patch)
tree895ef7151cbcb322d16002761e402ef7f3deb5f0 /build.gradle
parentc40e4dfbc335b14880572f8f53f75f3c0c7e0c70 (diff)
downloadsonarqube-e792b53ccf010bebc6b5d477476c250183a4be3b.tar.gz
sonarqube-e792b53ccf010bebc6b5d477476c250183a4be3b.zip
[NO-JIRA] Fix Gradle frontend tasks execution on Windows machines
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle13
1 files changed, 13 insertions, 0 deletions
diff --git a/build.gradle b/build.gradle
index b0c8586690f..c03c57edbc6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -656,3 +656,16 @@ dependencyUpdates {
rejected
}
}
+
+
+ext.osAdaptiveCommand = { commands ->
+ def newCommands = []
+
+ if (System.properties['os.name'].toLowerCase().contains('windows')) {
+ newCommands = ['cmd', '/c']
+ }
+
+ newCommands.addAll(commands)
+
+ return newCommands
+} \ No newline at end of file