<dir>

<dir> – documenting a directory in the <contents> tag

Documenting directories

The <dir> tag describes a directory in the package sources. A <dir> tag may contain other <dir> tags as well as <file> tags.

All files must be contained in a single top-level <dir> tag. For simple packages, simply use <dir name="/"> as the directory name.

Attributes

Required attributes
Attribute name Description
name Name of the directory in the sources
Optional attributes
Attribute name Description
baseinstalldir Relative location where all files and subdirectories will be installed

Examples

An excerpt of the <contents> tag of a real package.xml:

 <contents>
  <dir name="/">
   <dir name="examples">
    <file name="authors.php" role="doc" />
   </dir>
   <dir name="HTML">
    <dir name="Template">
     <file name="PHPLIB.php" role="php" />
     <dir name="PHPLIB">
      <!-- more files -->
     </dir>
    </dir>
  </dir>
 </contents>

The baseinstalldir attribute is mostly used when the directory structure in the package source tree does not match the layout when installed (e.g. when the QuickForm/ directory needs to be installed as HTML/QuickForm/:

 <contents>
  <dir name="/" baseinstalldir="HTML">
   <dir name="QuickForm">
    <file name="Element.php" role="php" />
    <!-- would be installed as HTML/QuickForm/Element.php -->
   </dir>
  </dir>
</contents>
specifying the contents of a release (Previous) documenting a file in the <contents> tag (Next)
Last updated: Sat, 22 Nov 2014 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:

User Notes:

Note by: ErarNualk
You certainly deserve a round of applause for your post and more specifically, your blog in general. Very high quality material