classes/phing/types/Path.php
public function setDir(PhingFile $location)
    {
        if ($this->isReference()) {
            throw $this->tooManyAttributes();
        }
        $this->createPathElement()->setDir($location);
    }
public function setDir(PhingFile $location)
    {
        if ($this->isReference()) {
            throw $this->tooManyAttributes();
        }
        $this->createPathElement()->setDir($location);
    }
public function setDir ( PhingFile $ location ) { if ( $ this -> isReference ( ) ) { throw $ this -> tooManyAttributes ( ) ; } $ this -> createPathElement ( ) -> setDir ( $ location ) ; }
Adds a element definition to the path.

@param PhingFile $location the location of the element to add (must not be
<code>null</code> nor empty.

@return void

@throws BuildException
Adds a element definition to the path .