[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
|