}
protected void execute( File sourceFile, File destDirectory )
throws ArchiverException
{
TarArchiveInputStream tis = null;
try
{
getLogger().info( "Expanding: " + sourceFile + " into " + destDirectory );
TarFile tarFile = new TarFile( sourceFile );
tis = new TarArchiveInputStream(
compression.decompress( sourceFile, new BufferedInputStream( new FileInputStream( sourceFile ) ) ) );
TarArchiveEntry te;
while ( ( te = tis.getNextTarEntry() ) != null )
{
TarResource fileInfo = new TarResource( tarFile, te );
if ( isSelected( te.getName(), fileInfo ) )
{
extractFile( sourceFile, destDirectory, tis, te.getName(), te.getModTime(), te.isDirectory(),