build.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="vamtam-theme" default="build" basedir=".">
  3. <property name="basedir" value="${phing.dir}" />
  4. <property name="docsdir" value="${phing.dir}/documentation/api" />
  5. <property name="utilsdir" value="${basedir}/utils" />
  6. <property name="phing_custom" value="${utilsdir}/phing" />
  7. <path id="project.class.path">
  8. <pathelement dir="${phing_custom}/tasks/"/>
  9. </path>
  10. <fileset id="src.php" dir=".">
  11. <patternset>
  12. <include name="**/*.php"/>
  13. <exclude name="vamtam/plugins/*/**"/>
  14. <exclude name="style_switcher/**"/>
  15. <exclude name="vendor/**"/>
  16. <exclude name="utils/**"/>
  17. <exclude name="vamtam/classes/plugin-activation.php"/>
  18. <exclude name="vamtam/admin/helpers/updates/class-pixelentity-theme-update.php"/>
  19. <exclude name="vamtam/admin/helpers/updates/class-envato-protected-api.php"/>
  20. </patternset>
  21. </fileset>
  22. <!-- =========================================================================================================== -->
  23. <target name="phpmd" description="Perform project mess detection using PHPMD">
  24. <phpmd rulesets="codesize,design,naming">
  25. <fileset refid="src.php" />
  26. </phpmd>
  27. </target>
  28. <target name="documentation">
  29. <echo msg="Generating documentation..." />
  30. <delete dir="${docsdir}"/>
  31. <mkdir dir="${docsdir}"/>
  32. <phpdoc2
  33. title="David &amp; Goliath"
  34. destdir="${docsdir}">
  35. <fileset refid="src.php" />
  36. </phpdoc2>
  37. </target>
  38. </project>