Permalink
Browse files

Remove empty backup directories (sometimes left around by m2e after a…

… refresh)
  • Loading branch information...
1 parent 44e4beb commit c86a33b5de56515e946839253c4274c04e288ce1 Stuart McCulloch committed Jul 8, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/main/java/com/tonicsystems/jarjar/JarJarMojo.java
@@ -140,6 +140,10 @@ public void execute()
final File outputFile = new File( output );
final File backupFile = new File( outputFile.getParentFile(), "original-" + outputFile.getName() );
+ if ( backupFile.isDirectory() && backupFile.list().length == 0 )
+ {
+ backupFile.delete();
+ }
if ( inputFile.equals( outputFile ) && backupFile.exists() )
{
getLog().info( "Already processed" );

0 comments on commit c86a33b

Please sign in to comment.