| Lars Olesen 2007-03-19, 7:06 pm |
| Hi,
I am using the PackageFileManager2 to make a package file. I am on a
windows box with the pear installer up to date.
I have the following layout of my app:
data/
php/
SkipCheckIn
HTML
LiveUser
web/
index.php
And the following snippet from the package file generator
require_once 'PEAR/PackageFileManager2.php';
PEAR::setErrorHandling(PEAR_ERROR_DIE);
$pfm = new PEAR_PackageFileManager2();
$pfm->setOptions(
array(
'baseinstalldir' => '/SkipCheckIn',
'filelistgenerator' => 'file',
'packagedirectory' => dirname(__FILE__),
'packagefile' => 'package.xml',
'ignore' => array(
'generate_package_xml.php',
'package.xml',
'*.tgz'
),
'exceptions' => array(),
'simpleoutput' => true,
'dir_roles' => array(
'web' => 'web',
'php' => 'php'
)
)
);
And the files gets the correct roles, but they are not placed as I
would have expected. I expected to have all the files from the php-dir
placed as follows:
@pear-dir@/SkipCheckIn
@pear-dir@/LiveUser
@pear-dir@/HTML
And from the webdir as follows:
@web-dir@/SkipCheckIn/index.php
But they are placed in this manner:
@pear-dir@/SkipCheckIn/php/SkipCheckIn
@pear-dir@/SkipCheckIn/php/LiveUser
@pear-dir@/SkipCheckIn/php/HTML
and
@web-dir@/SkipCheckIn/web/index.php
How can I achieve what I expect?
--
Lars Olesen
Gratis backup https://mozy.com/?code=9MYJPF
|