|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
Installing to Web Root DirDear Friends,
Anyone please can help me getting this piece of package.xml: <dir name="www"> <dir name="mdb2_schematool"> <file name="action.php" role="www" /> <file name="class.inc.php" role="www" /> <file name="index.php" role="www" /> <file name="result.php" role="www" /> </dir> </dir> <!-- /www --> actually installing files to web_root/mdb2_schematool instead of web_root/www/mdb2_schematool ? best regards, Igor. -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: Installing to Web Root DirOn Sat, Nov 1, 2008 at 8:10 AM, Igor Feghali <igor.feghali@...> wrote:
> Dear Friends, > > Anyone please can help me getting this piece of package.xml: > > <dir name="www"> > <dir name="mdb2_schematool"> > <file name="action.php" role="www" /> > <file name="class.inc.php" role="www" /> > <file name="index.php" role="www" /> > <file name="result.php" role="www" /> > </dir> > </dir> <!-- /www --> > > actually installing files to web_root/mdb2_schematool instead of > web_root/www/mdb2_schematool ? > > best regards, > Igor. > What does your PEAR configuration show for *www_dir*? Is set to * web_root/www*/ rather than *web_root/* ? -- CRB |
|
|
Re: Installing to Web Root DirHi Chuck,
by web_root I meant the path pointed by pear config www_dir. so it would be web_root/. regards, Igor. -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: Installing to Web Root DirOn Sat, Nov 1, 2008 at 5:30 PM, Igor Feghali <igor.feghali@...> wrote:
> Hi Chuck, > > by web_root I meant the path pointed by pear config www_dir. so it > would be web_root/. Try doing : <dir baseinstalldir="/" name="www"> That should do the trick. Regards Helgi -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: Installing to Web Root DirHello Helgi,
Already tried that. Dind't work. Regards, Igor. -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: Installing to Web Root DirOn Sat, Nov 1, 2008 at 7:10 AM, Igor Feghali <igor.feghali@...> wrote:
> Dear Friends, > > Anyone please can help me getting this piece of package.xml: > > <dir name="www"> > <dir name="mdb2_schematool"> > <file name="action.php" role="www" /> > <file name="class.inc.php" role="www" /> > <file name="index.php" role="www" /> > <file name="result.php" role="www" /> > </dir> > </dir> <!-- /www --> > > actually installing files to web_root/mdb2_schematool instead of > web_root/www/mdb2_schematool ? I believe what you're looking for is the "install as" option in package.xml v2. <phprelease> <filelist> <install as="mdb2_schematool/action.php" name="www/mdb2_schematool/action.php" /> <install as="mdb2_schematool/class.inc.php" name="www/mdb2_schematool/class.inc.php" /> <install as="mdb2_schematool/index.php" name="www/mdb2_schematool/index.php" /> <install as="mdb2_schematool/result.php" name="www/mdb2_schematool/result.php" /> </filelist> </phprelease> In PEAR_PackageFileManager2 you can use: $pkg->addInstallAs('www/mdb2_schematool/action.php', 'mdb2_schematool/action.php'); ... Igor, could you try that and let us know if it works? -- Brett Bieber -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: Installing to Web Root DirHello Brett,
On Thu, Nov 6, 2008 at 7:51 PM, Brett Bieber <brett.bieber@...> wrote: > Igor, could you try that and let us know if it works? Yes it works. Having to specify those files twice (under <dire> and <phprelease>) seems weird though. Thanks a lot for the help. I am now trying the "installexceptions" option of package file manager.. regards, Igor. -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: Installing to Web Root DirOn Thu, Nov 6, 2008 at 4:49 PM, Igor Feghali <igor.feghali@...> wrote:
> I am now trying the "installexceptions" option of package file manager.. > You can see some usage of that *installexceptions *array in PhpDocumentor's utility file that regenerates its *package.xml* file... it's the * scripts/create_package.xml.php* file. -- CRB |
|
|
Re: Installing to Web Root Diryeh it binds to "baseinstalldir" which doesn't work, as said
previously. don't you think its a bug ? I still don't see why I do have to make use of "install as" instead of "baseinstalldir".. the later sounds much more appropriate. On Thu, Nov 6, 2008 at 8:51 PM, Chuck Burgess <demon.gene@...> wrote: > On Thu, Nov 6, 2008 at 4:49 PM, Igor Feghali <igor.feghali@...> wrote: > >> I am now trying the "installexceptions" option of package file manager.. >> > > > You can see some usage of that *installexceptions *array in PhpDocumentor's > utility file that regenerates its *package.xml* file... it's the * > scripts/create_package.xml.php* file. > -- > CRB > -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
|
Re: Installing to Web Root DirIgor Feghali wrote:
> yeh it binds to "baseinstalldir" which doesn't work, as said > previously. don't you think its a bug ? I still don't see why I do > have to make use of "install as" instead of "baseinstalldir".. the > later sounds much more appropriate. baseinstalldir serves to specify extra subdirectories, so that if your package only installs into Extra/Long/Path, you can tell the installer that files in directory "Here" should go into Extra/Long/Path/Here. install as is designed to short-circuit long paths. Pyrus, on the other hand, does some clever manipulation to allow what you are trying to do, so PEAR2 will be much easier to work with. Greg -- PEAR Development Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
| Free embeddable forum powered by Nabble | Forum Help |