Ticket #456: AbstractFileSet.php.patch

File AbstractFileSet.php.patch, 819 bytes (added by ashnazg@…, 2 years ago)

wrap the isDir check with an isLink check

  • /home/ciadmin/AbstractFileSet.php.

    old new  
    282282        if (!$this->dir->exists()) { 
    283283            throw new BuildException("Directory ".$this->dir->getAbsolutePath()." not found."); 
    284284        } 
    285         if (!$this->dir->isDirectory()) { 
    286             throw new BuildException($this->dir->getAbsolutePath()." is not a directory."); 
     285        if (!$this->dir->isLink() || !$this->expandSymbolicLinks) { 
     286            if (!$this->dir->isDirectory()) { 
     287                throw new BuildException($this->dir->getAbsolutePath()." is not a directory."); 
     288            } 
    287289        } 
    288290        $ds = new DirectoryScanner(); 
    289291        $ds->setExpandSymbolicLinks($this->expandSymbolicLinks);