Skip to content

Commit

Permalink
Using the deleteOnExit did not remove the directory, only the content…
Browse files Browse the repository at this point in the history
…s. Using forceDelete does remove the contents.
  • Loading branch information
Jon McLean committed Aug 11, 2014
1 parent 34b151d commit 44f681a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -299,7 +299,7 @@ public void shutdown() throws Exception {
getLog().info(
"Scheduling directory for deletion: "
+ this.hdfsTemporaryDirectory.getAbsolutePath());
FileUtils.forceDeleteOnExit(hdfsTemporaryDirectory);
FileUtils.forceDelete(hdfsTemporaryDirectory);
} catch (IOException e) {
throw new MojoExecutionException(
"Error deleting Accumulo temporary directory", e);
Expand Down

0 comments on commit 44f681a

Please sign in to comment.