Modify

Ticket #599 (assigned enhancement)

Opened 18 months ago

Last modified 5 months ago

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.

  1. The build.xml file cannot be found in the cwd scope. The absolute path must be given or the PhingFile class improved;
  2. 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:2 Changed 15 months ago by mrook

  • Milestone changed from 2.4.5 to TBD

comment:3 Changed 11 months ago by mrook

  • Milestone changed from TBD to 2.4.7

comment:4 Changed 6 months ago by tyra3l@…

would be a nice addition.

comment:5 follow-up: ↓ 7 Changed 5 months ago by luehr@…

Indeed. Phing as phar would seriously boost phing adoption, i guess.

comment:6 Changed 5 months ago by mrook

  • Milestone changed from 2.4.9 to TBD

Moving this one back to the TBD queue to allow Victor more time.

comment:7 in reply to: ↑ 5 Changed 5 months ago by mrook

Replying to luehr@…:

Indeed. Phing as phar would seriously boost phing adoption, i guess.

I agree. I've added #839 to track that particular part of the request.

View

Add a comment

Modify Ticket

Action
as assigned
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.