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:
commit
29a93a4a2a
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue