codeconsole commented on PR #15698:
URL: https://github.com/apache/grails-core/pull/15698#issuecomment-4746554850
what about if you make Gradle stop failing on 143 — and selectively, which
is the whole trick. ignoreExitValue = true alone would wallow a real crash, but
Gradle hands you the ExecResult, so you tolerate only the deliberate-stop codes
and re-throw on everything else:
```grade
tasks.withType(BootRun).configureEach {
ignoreExitValue = true
doLast {
int code = executionResult.get().exitValue
if (code != 0 && code != 143 && code != 130) { //
143=SIGTERM(stop-app), 130=SIGINT(Ctrl+C)
throw new GradleException("Application exited abnormally (code
${code})")
}
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]