Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
08498d4224 | |||
1c7997d85c | |||
9116d4bfd9 |
2
pom.xml
2
pom.xml
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
<groupId>com.inteligr8</groupId>
|
<groupId>com.inteligr8</groupId>
|
||||||
<artifactId>ban-maven-plugin</artifactId>
|
<artifactId>ban-maven-plugin</artifactId>
|
||||||
<version>1.3.3</version>
|
<version>1.3.4</version>
|
||||||
<packaging>maven-plugin</packaging>
|
<packaging>maven-plugin</packaging>
|
||||||
|
|
||||||
<name>Ban Dependencies Maven Plugin</name>
|
<name>Ban Dependencies Maven Plugin</name>
|
||||||
|
@@ -16,6 +16,7 @@ package com.inteligr8.maven.ban;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.nio.file.DirectoryNotEmptyException;
|
||||||
import java.nio.file.FileVisitResult;
|
import java.nio.file.FileVisitResult;
|
||||||
import java.nio.file.FileVisitor;
|
import java.nio.file.FileVisitor;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
@@ -328,6 +329,8 @@ public class PurgeRepoMojo extends AbstractMojo {
|
|||||||
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
|
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
|
||||||
try {
|
try {
|
||||||
Files.delete(dir);
|
Files.delete(dir);
|
||||||
|
} catch (DirectoryNotEmptyException dnee) {
|
||||||
|
getLog().debug("The folder will not be deleted as it is not empty: " + dir);
|
||||||
} catch (IOException ie) {
|
} catch (IOException ie) {
|
||||||
getLog().debug(ie);
|
getLog().debug(ie);
|
||||||
getLog().warn("The folder failed to delete: " + dir);
|
getLog().warn("The folder failed to delete: " + dir);
|
||||||
|
Reference in New Issue
Block a user