This is an alternative approach to PR #75, rather than never delete the build directory so that the build target, context name, and stat can be read, this defers the removal and recreation of the build dir until build results are available. Incremental builds still work but the build dir is fully cleaned each time. This also preserves previous build output if the build server can't be reached.
Full builds can be achieved by manually deleting the build dir before the build, I can also add a flag to pre-delete the build dir and force a full build if desired.
Fixes #73
This is an alternative approach to PR #75, rather than never delete the build directory so that the build target, context name, and stat can be read, this defers the removal and recreation of the build dir until build results are available. Incremental builds still work but the build dir is fully cleaned each time. This also preserves previous build output if the build server can't be reached.
Full builds can be achieved by manually deleting the build dir before the build, I can also add a flag to pre-delete the build dir and force a full build if desired.