sbt/sbt-app/src
Ethan Atkins 379503a894 Restore watchOnTermination
At some point the watchOnTermination callback stopped working. I'm not
exactly sure how or why that happened but it is fairly straightforward
to restore. The one tricky thing was that the callback has the signature
(Watch.Action, _, _, _) => State, which requires propagating the action
to the failWatch command. The easiest way to do this was to add a
mutable field to the ContinuousState. This is rather ugly and reflects
some poor design choices but a more comprehensive refactor is out of
the scope of this fix.

This commit adds a scripted test that ensures that the callback is
invoked both in the successful and unsuccessful watch cases. In each
case the callback deletes a file and we ensure that the file is indeed
absent after the watch exits.
2022-04-09 15:49:10 -07:00
..
main Make License object available 2022-01-31 22:00:54 -05:00
repo-override-test Implement sbt-launch.jar download 2021-04-19 23:43:15 -04:00
sbt-test Restore watchOnTermination 2022-04-09 15:49:10 -07:00
test/scala/sbt Remove log4j 2021-12-03 17:13:29 +00:00