PEAR PackageManager file hierarchy
Posted: Thu Mar 01, 2007 9:01 pm
I have a non-PEAR directory layout for my library:
whereas the standard layout would be:
Thus, I am at a loss as to how to use PEAR Package Manager to include all these directories. Normally speaking, you would use something like:
But if I attempt to do something similar, I end up with:
Except that now all the class files get cordoned into a library/ directory, which is not what I want!
Furthermore, using the 'include' syntax as such:
doesn't seem to work: it always complains that the files can't be found. Hmph. Anyone have a clue?
Code: Select all
/htmlpurifier
/library
/HTMLPurifier
/tests
/docsCode: Select all
/htmlpurifier
/HTMLPurifier
/tests
/docsCode: Select all
$pkg->setOptions(
array(
'baseinstalldir' => '/',
'packagedirectory' => dirname(__FILE__),
'filelistgenerator' => 'file',
'include' => array('*'),
'roles' => array('*' => 'php'),
'exceptions' => array('tests/*' => 'test', 'docs/*' => 'docs')
)
);Code: Select all
$pkg->setOptions(
array(
'baseinstalldir' => '/',
'packagedirectory' => dirname(__FILE__),
'filelistgenerator' => 'file',
'roles' => array('*' => 'php'),
'exceptions' => array('tests/*' => 'test', 'docs/*' => 'docs')
)
);Furthermore, using the 'include' syntax as such:
Code: Select all
'include' => array('library', 'tests', 'docs')