mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-18 21:35:03 +01:00
apitest: Move JVM args definition to build.gradle
This commit is contained in:
parent
55f113c787
commit
e999e8e3af
@ -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
|
||||
|
@ -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"')
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user