-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bisq.properties pickup in ApiTest #6724
Fix bisq.properties pickup in ApiTest #6724
Conversation
88efeff
to
5b0c5d5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to delete the bisq.properties
file in the root directory? The deletion breaks the Gradle Build Cache. It's smarter to include/exclude the file explicitly [1], or even have them multiple times (for all instances) in the resources directory.
I know that you didn't write the initial file-deletion code.
[1] https://docs.gradle.org/current/dsl/org.gradle.language.jvm.tasks.ProcessResources.html
b73a03e
to
2d65ca3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Copy 'bisq.properties' file in apitest/src/main/resources to each instance's DataDir on startup to allow pickup by the instance.
Remove redundant directory moving and renaming. Make buildResourcesDir property less brittle.
Stop the deletion of the original bisq.properties file after it's copied into the instances data directories.
2d65ca3
to
1a931b8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
Awesome work, congrats on your first merged pull request! |
This change copies the 'bisq.properties' file in apitest/src/main/resources to each instance's DataDir on test harness startup.
This was necessary as #5718 was not copying the file into the instance's data dir but leaving it in 'build/resources/main' where it wasn't picked up by the instance.