tarTask.setDestFile( tarFile );
tarTask.setBasedir( getTargetDirectory() );
tarTask.setIncludes( getArchiveDirectory().getName() + "/**" );
tarTask.execute();
GZip gzipTask = new GZip();
gzipTask.setProject( project );
gzipTask.setDestfile( finalFile );
gzipTask.setSrc( tarFile );
gzipTask.execute();
if ( !tarFile.delete() )
{
Exception e = new IOException( I18n.err( I18n.ERR_113_COULD_NOT_DELETE_FILE_OR_DIRECTORY, tarFile ) );
log.error( e.getLocalizedMessage() );