aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-application
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2021-08-10 07:57:05 -0500
committersonartech <sonartech@sonarsource.com>2021-08-11 20:08:07 +0000
commit8be4f5b086485b2a9f83f88dfb6e66eece33d949 (patch)
treea0105548c716fd0fd65fe5f257afb74010a5280e /sonar-application
parentd9ca950d8e7a035e25843dd97c2e38ef4eac7054 (diff)
downloadsonarqube-8be4f5b086485b2a9f83f88dfb6e66eece33d949.tar.gz
sonarqube-8be4f5b086485b2a9f83f88dfb6e66eece33d949.zip
SONAR-15244 Despite sonar.log.useJsonOutput is enabled some logs are still not in a JSON format
Diffstat (limited to 'sonar-application')
-rw-r--r--sonar-application/build.gradle4
1 files changed, 4 insertions, 0 deletions
diff --git a/sonar-application/build.gradle b/sonar-application/build.gradle
index 4edfac54339..652f8febbbe 100644
--- a/sonar-application/build.gradle
+++ b/sonar-application/build.gradle
@@ -108,6 +108,10 @@ task zip(type: Zip, dependsOn: [configurations.compile, downloadElasticSearch, v
fcd.relativePath = new RelativePath(true, *path)
}
into("${archiveDir}/elasticsearch")
+ filesMatching('**/bin/elasticsearch-env') {
+ // to avoid warning logs
+ filter { line -> line.replaceAll('echo "warning: no-jdk distributions.*', ':') }
+ }
// elasticsearch script will be replaced by patched version below
exclude '**/bin/elasticsearch'
exclude '**/bin/elasticsearch-cli'