apitest: Move JVM args definition to build.gradle

This commit is contained in:
Alva Swanson 2023-08-05 19:46:14 +02:00
parent 55f113c787
commit e999e8e3af
No known key found for this signature in database
GPG Key ID: 004760E77F753090
2 changed files with 1 additions and 10 deletions

View File

@ -4,6 +4,7 @@ plugins {
application {
mainClass = 'bisq.apitest.ApiTestMain'
applicationDefaultJvmArgs = ['-Dlogback.configurationFile=apitest/build/resources/main/logback.xml']
}
// The external dao-setup.gradle file contains tasks to install and clean dao-setup

View File

@ -38,16 +38,6 @@ installDist {
def unixScriptFile = file("${rootProject.projectDir}/bisq-$applicationName")
unixScriptFile.text = unixScriptFile.text.replace(
'APP_HOME=$( cd "${APP_HOME:-./}.." && pwd -P ) || exit', 'APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit')
if (applicationName == 'apitest') {
// Pass the logback config file as a system property to avoid chatty
// logback startup due to multiple logback.xml files in the classpath
// (:daemon & :cli).
def script = file("${rootProject.projectDir}/bisq-$applicationName")
script.text = script.text.replace(
'DEFAULT_JVM_OPTS=""', 'DEFAULT_JVM_OPTS="' +
'-Dlogback.configurationFile=apitest/build/resources/main/logback.xml"')
}
}
}