/**
  * @param  array     $files array of filenames
  * @param  PhingFile $dir
  *
  * @return boolean
  */
 protected function areFilesUpToDate($files, $dir)
 {
     $sfs = new SourceFileScanner($this);
     $mm = new MergeMapper();
     $mm->setTo($this->tarFile->getAbsolutePath());
     return count($sfs->restrict($files, $dir, null, $mm)) == 0;
 }
 protected function scanDir(PhingFile $srcDir, $files)
 {
     $sfs = new SourceFileScanner($this);
     $mapper = null;
     $dir = $srcDir;
     if ($this->mapperElement === null) {
         $mm = new MergeMapper();
         $mm->setTo($this->_targetFile->getAbsolutePath());
         $mapper = $mm;
         $dir = null;
     } else {
         $mapper = $this->mapperElement->getImplementation();
     }
     return count($sfs->restrict($files, $srcDir, $dir, $mapper)) === 0;
 }