Skip to content

Commit

Permalink
Fix #406 : incremental build with jar removal
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonlee authored and neighbWang committed Apr 6, 2023
1 parent cd35577 commit d3adb7b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,11 @@ internal class BoosterTransformInvocation(
@Suppress("NON_EXHAUSTIVE_WHEN")
private fun doIncrementalTransform(jarInput: JarInput) {
when (jarInput.status) {
REMOVED -> jarInput.file.delete()
REMOVED -> {
outputProvider?.getContentLocation(jarInput.id, jarInput.contentTypes, jarInput.scopes, Format.JAR)?.takeIf {
it.exists()
}?.delete()
}
else -> {
outputProvider?.let { provider ->
jarInput.transform(provider.getContentLocation(jarInput.id, jarInput.contentTypes, jarInput.scopes, Format.JAR))
Expand Down

0 comments on commit d3adb7b

Please sign in to comment.