private void removeOldJar() throws IOException {
  if (outputFile.exists()) {
    if (outputFile.isDirectory()) {
      if (!FileUtils.recursiveDelete(outputFile)) {
        throw new IOException("Could not delete file [" + outputFile.getAbsolutePath() + "]");
      }
    }
 else {
      if (!outputFile.delete()) {
        throw new IOException("Could not delete file [" + outputFile.getAbsolutePath() + "]");
      }
    }
  }
}

private void removeOldJar ( ) throws IOException { if ( outputFile . exists ( ) ) { if ( outputFile . isDirectory ( ) ) { if ( ! FileUtils . recursiveDelete ( outputFile ) ) { throw new IOException ( "Could not delete file [" + outputFile . getAbsolutePath ( ) + "]" ) ; } } else { if ( ! outputFile . delete ( ) ) { throw new IOException ( "Could not delete file [" + outputFile . getAbsolutePath ( ) + "]" ) ; } } } }
removes the old generated jar if it exists .
