Delete temp directory after MavenBuild has exected
Closes gh-33083
This commit is contained in:
parent
f42e90a2b4
commit
6423535f67
|
|
@ -45,6 +45,8 @@ import org.apache.maven.shared.invoker.InvocationResult;
|
|||
import org.apache.maven.shared.invoker.Invoker;
|
||||
import org.apache.maven.shared.invoker.MavenInvocationException;
|
||||
|
||||
import org.springframework.util.FileSystemUtils;
|
||||
|
||||
import static org.assertj.core.api.Assertions.assertThat;
|
||||
import static org.assertj.core.api.Assertions.contentOf;
|
||||
|
||||
|
|
@ -195,6 +197,9 @@ class MavenBuild {
|
|||
catch (Exception ex) {
|
||||
throw new RuntimeException(ex);
|
||||
}
|
||||
finally {
|
||||
FileSystemUtils.deleteRecursively(this.temp);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue