Merge pull request #4914 from eclipse/jetty-9.4.x-4913-runDistroException

Issue #4913 - jetty-maven-plugin recursively delete target jetty-base
This commit is contained in:
Lachlan 2020-05-28 13:51:52 +10:00 committed by GitHub
commit 29a93a4a2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -341,7 +341,8 @@ public class JettyRunDistro extends JettyRunMojo
targetBase = new File(target, "jetty-base");
Path targetBasePath = targetBase.toPath();
Files.deleteIfExists(targetBase.toPath());
if (Files.exists(targetBasePath))
IO.delete(targetBase);
targetBase.mkdirs();