diff options
author | Philippe Perrin <philippe.perrin@sonarsource.com> | 2021-10-01 09:57:26 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2021-10-01 20:03:19 +0000 |
commit | e792b53ccf010bebc6b5d477476c250183a4be3b (patch) | |
tree | 895ef7151cbcb322d16002761e402ef7f3deb5f0 /build.gradle | |
parent | c40e4dfbc335b14880572f8f53f75f3c0c7e0c70 (diff) | |
download | sonarqube-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.gradle | 13 |
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 |