Avoid keystore errors by restoring the clean-appdata-on-build behavior - #391
Conversation
Signed-off-by: Mitch Gaffigan <mitch.gaffigan@comcast.net>
|
Why all of appdata? Why not just the keystore? I might have channels in mirthdb and I am testing stuff and don't want to re-import those channels. I'd make the full appdata wipe opt-in (a flag) and delete just keystore.jks by default. |
|
@pacmano1, I was matching the ant behavior. Something that maintains the DB would be nice if you want to submit something. |
so your ask is a flag to "leave mirthdb"? |
My original goal was to modify Gradle to "copy if newer" for config directory. That would avoid the issue, and preserve the database. I couldn't find a clean way to do that, though. |
Ant ran a clean on build and deleted the entire setup folder, so not exactly original behavior. |
Ant used to clear appdata on build. Without that, the following errors occur when starting the server during development after multiple build-run cycles:
This PR restores the historical behavior.