2015-01-22 3 views
1

У меня phpdox для создания моей документации по API, и она работает, но я хочу, чтобы она исключала некоторые каталоги (например, Zend и smarty). В моей phpdox.xml коллектор часть выглядит следующим образом (и это не работает):Исключить некоторые каталоги в phpdox

<collector publiconly="false" backend="parser"> 
     <!-- @publiconly - Flag to disable/enable processing of non public methods and members --> 
     <!-- @backend - The collector back end to use, currently only shipping with 'parser' --> 

     <!-- <include/exclude filter for filelist generator, mask must follow fnmatch() requirements --> 
     <include mask="*.php" /> 
     <exclude mask="Zend/*" /> 
     <exclude mask="smarty/*" /> 

     <!-- How to handle inheritance --> 
     <inheritance resolve="true"> 
      <!-- @resolve - Flag to enable/disable resolving of inheritance --> 

      <!-- You can define multiple (external) dependencies to be included --> 
      <!-- <dependency path="" --> 
      <!-- @path - path to a directory containing an index.xml for a dependency project --> 
     </inheritance> 

    </collector> 

Что случилось с исключающими масками?

ответ

4

нашел его сам:

<collector publiconly="false" backend="parser"> 
     <!-- @publiconly - Flag to disable/enable processing of non public methods and members --> 
     <!-- @backend - The collector backend to use, currently only shipping with 'parser' --> 

     <!-- <include/exclude filter for filelist generator, mask must follow fnmatch() requirements --> 
     <include mask="*.php" /> 
     <exclude mask="**Zend**"/> 
     <exclude mask="**smarty**"/> 

     <!-- How to handle inheritance --> 
     <inheritance resolve="true"> 
      <!-- @resolve - Flag to enable/disable resolving of inheritance --> 

      <!-- You can define multiple (external) dependencies to be included --> 
      <!-- <dependency path="" --> 
      <!-- @path - path to a directory containing an index.xml for a dependency project --> 
     </inheritance> 

    </collector> 

Нужно использовать "** DIRNAME **" подход, чтобы сделать это, см код выше.

+0

Не работает для меня, потому что все вниз по дереву, содержащему «исключенный тег», исключается. – trinity420

Смежные вопросы