aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application/build.gradle
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2019-03-13 09:58:40 +0100
committerSonarTech <sonartech@sonarsource.com>2019-03-19 20:21:25 +0100
commit90660265e4ee3255cd5680bdcf10bbe854f82f21 (patch)
tree8d38bd9e67e93718dd098f69c2f4121d7f7cf6fd /sonar-application/build.gradle
parent8edde8c99147975908e6bfe3db1a5ba46039b2e4 (diff)
downloadsonarqube-90660265e4ee3255cd5680bdcf10bbe854f82f21.tar.gz
sonarqube-90660265e4ee3255cd5680bdcf10bbe854f82f21.zip
SONAR-11792 workaround ES bug with space in tmp dir path
Diffstat (limited to 'sonar-application/build.gradle')
-rw-r--r--sonar-application/build.gradle8
1 files changed, 7 insertions, 1 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle
index 6832cbf25b0..2d8f5dbbb72 100644
--- a/sonar-application/build.gradle
+++ b/sonar-application/build.gradle
@@ -92,7 +92,9 @@ task zip(type: Zip, dependsOn: [configurations.compile]) {
into("${archiveDir}/") {
from file('src/main/assembly')
- // no windows related binaries are packaged since we start ES on windows directly with java -jar
+ exclude 'elasticsearch-patch'
+ // elasticsearch script will be replaced by patched version below
+ exclude 'elasticsearch/bin/elasticsearch'
exclude 'elasticsearch/bin/elasticsearch.bat'
exclude 'elasticsearch/bin/elasticsearch-env.bat'
exclude 'elasticsearch/bin/elasticsearch-service.bat'
@@ -123,6 +125,10 @@ task zip(type: Zip, dependsOn: [configurations.compile]) {
exclude 'elasticsearch/modules/tribe/**'
exclude 'elasticsearch/modules/x-pack-*/**'
}
+ into("${archiveDir}/elasticsearch/") {
+ from file('src/main/assembly/elasticsearch-patch')
+ include 'bin/elasticsearch'
+ }
// Create the empty dir (plugins) required by elasticsearch
into("${archiveDir}/elasticsearch/") {
from "$buildDir/elasticsearch"