ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pear-dev
pear-dev
[PEAR-DEV] package.xml v2.0 questions
by Terra Frost other posts by this author
Nov 16 2006 10:30AM messages near this date
Re: [PEAR-DEV] PEAR_PackageFileManager 1.6.0 conclusion | [PEAR-DEV] Re: package.xml v2.0 questions
The package.xml example given at 
<http://pear.php.net/manual/en/guide.developers.package2.php>  uses the 
following for its file tag:

    <file name="Dependency2.php" role="php"> 
     <tasks:replace from="@PEAR-VER@" to="version" type="package-info"/> 
    </file> 

In contrast, PEAR 1.4.11 <http://pear.php.net/package/PEAR>  uses this:

   <file md5sum="b309a1eb31b2826cd1cec229fb352eb0" name="OS/Guess.php" 
role="php"> 
    <tasks:replace from="@package_version@" to="version" 
type="package-info" /> 
   </file> 

Which one is correct?  Is the md5sum attribute needed or not?

Also, the first example seems to specify subdirs via nested dir tags - 
not by having their path in the name attribute as the second one does.  
eg.  The first one would seem to suggest that this is the way to do it:

  <dir name="/"> 
    <dir name="OS"> 
      <file name="Guess.php" ...> 
      ...
      </file> 
    </dir> 
  </dir> 

...whereas the latter would seem to suggest this:

  <dir name="/"> 
    <file name="OS/Guess.php" ...> 
    ...
    </file> 
  </dir> 

Also, I note that PEAR includes both v1 and v2 of package.xml (albeit 
with different names).  Any ideas as to why?

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Terra Frost
Greg Beaver

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved