Merge pull request #31 from corda/CORE-12019/Add_stopAndCleanCorda_task

CORE-12019 Add a "stopAndCleanCorda" gradle task that will Stop Corda5 if running and do some cleanup
This commit is contained in:
egabrovski-r3 2023-03-28 15:24:29 +03:00 committed by GitHub
commit b822fa8c1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,6 +146,19 @@ tasks.register("stopCorda") {
}
}
tasks.register("stopAndCleanCorda") {
group = cordaGroup
dependsOn('clean')
doLast {
try {
cordaLifeCycle.stopCorda()
} catch (Exception ignore) {
println("ignoring exception: ${ignore.toString()}")
}
delete devEnvWorkspace
}
}
tasks.register("getPostgresJDBC") {
group = supportingGroup
doLast {