public function getDir(Project $p = null)
    {
        if ($p === null) {
            $p = $this->getProject();
        }
        if ($this->pps === null) {
            $this->loadPearPackageScanner($p);
        }

        return new PhingFile((string) $this->pps->getBaseDir());
    }