Ticket #599 (assigned enhancement)
Fix Phing packed inside the phar PHP archive
| Reported by: | gedrox@… | Owned by: | victor |
|---|---|---|---|
| Priority: | major | Milestone: | TBD |
| Component: | phing-core | Version: | 2.4.3 |
| Keywords: | phar | Cc: |
Description
Currently if the Phing classes are packed inside the phar archive it does not work correctly.
There are several problems I have found so far.
- The build.xml file cannot be found in the cwd scope. The absolute path must be given or the PhingFile class improved;
- There are problems in the Win32FileSystem class when working with the phar paths, as example " phar://c:\dir\phar.phar\phing\tasks\defaults.properties" (is changed to invalid path "phar:\c:\dir\phar.phar\phing\tasks\defaults.properties" what is not recognized by the system);
I've used the tutorial http://blog.calevans.com/2009/07/19/lessons-in-phar/ for building the phar package, set a classes/phing folder as the dir to archive, used the bin/phing.php as the stub, copied etc/VERSION.TXT into the classes/phing folder.
The reason of making the phar Phing package is to deliver PHP application installation without having to copy a lot of files and no need to ask client to install the PEAR and Phing on their servers.
This realy would make an excellent feature of Phing to have a working phar file downloadable from this site as well.
Attachments
Change History
comment:1 Changed 18 months ago by victor
- Owner changed from mrook to victor
- Status changed from new to assigned
- Milestone changed from TBD to 2.4.5
comment:5 follow-up: ↓ 7 Changed 5 months ago by luehr@…
Indeed. Phing as phar would seriously boost phing adoption, i guess.
