From f235566a1de184d0587c4719adb6346576e722b3 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Tue, 6 Nov 2012 14:16:32 -0500
Subject: [PATCH] Refactored phpdoc to separate Phing task; exclude more files
 from documentation list to work around bugs.

---
 build.xml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/build.xml b/build.xml
index be6128a3d8d..4c98ebedafb 100644
--- a/build.xml
+++ b/build.xml
@@ -39,7 +39,6 @@
     <!-- Create dirs -->
     <mkdir dir="${builddir}/reports"/>
     <mkdir dir="${builddir}/reports/coverage"/>
-    <mkdir dir="${builddir}/apidocs"/>
 
     <!-- PHP CodeSniffer -->
     <exec command="phpcs --standard=PEAR --extensions=php --report=checkstyle ${srcdir}/module/VuFind/src &gt; ${builddir}/reports/checkstyle.xml" escape="false" />
@@ -48,16 +47,22 @@
     <phingcall target="phpunit"/>
 
     <!-- PHP API Documentation -->
+    <phingcall target="phpdoc"/>
+  </target>
+
+  <!-- PHP API Documentation -->
+  <target name="phpdoc">
+    <mkdir dir="${builddir}/apidocs"/>
     <phpdoc2 title="VuFind API Documentation"
       destdir="${builddir}/apidocs">
       <fileset dir=".">
         <include name="module/VuFind/src/**/*.php" />
         <!-- These files break phpdoc2; exclude until we can figure out why: -->
+        <exclude name="module/VuFind/src/VuFind/Hierarchy/**/*.php" />
         <exclude name="module/VuFind/src/VuFind/Log/Writer/Stream.php" />
         <exclude name="module/VuFind/src/VuFind/SMS/*.php" />
       </fileset>
     </phpdoc2>
-
   </target>
 
   <!-- PHPUnit -->
-- 
GitLab