Teknik is a suite of services with attractive and functional interfaces. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.xml 2.7KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="PHP_PMD" basedir=".">
  3. <!--
  4. Include local project properties.
  5. -->
  6. <property file="build.properties" />
  7. <!--
  8. Import common build targets
  9. -->
  10. <import file="${basedir}/setup/src/main/xml/base.xml" />
  11. <!--
  12. Hook that will be called after we have copied the project's library
  13. directory.
  14. Parameters:
  15. output.dir Output directory for the temporary build tree.
  16. library.dir The library directory in the temporary build tree.
  17. -->
  18. <target name="~copy-vendor-dir-after">
  19. <delete includeemptydirs="true">
  20. <fileset dir="${vendor.dir}/pdepend">
  21. <exclude name="pdepend/src/main/**" />
  22. </fileset>
  23. </delete>
  24. </target>
  25. <!--
  26. Hook method for copying files for the project's xyz archive format.
  27. Parameters:
  28. output.dir Output directory for the temporary build tree.
  29. -->
  30. <target name="do-copy-files-for-xyz-archive">
  31. <copy todir="${output.dir}/resources/rulesets">
  32. <fileset dir="${commons.srcdir.resource}/rulesets" />
  33. </copy>
  34. </target>
  35. <!--
  36. We use the phar archive after hook to validate that a newly created
  37. phar archive works as expected.
  38. Parameters:
  39. ${-package:phar:filename} Name of the created phar file.
  40. -->
  41. <target name="-phpmd:package:phar:after~hooked" extensionOf="-package:phar:after~hook">
  42. <echo message="Executing:" level="verbose" />
  43. <echo message=" ${-package:phar:filename} PHP/PMD/Rule text ${phpmd.rulesets}" level="verbose" />
  44. <exec dir="${commons.srcdir.php}"
  45. executable="${-package:phar:filename}"
  46. failonerror="true">
  47. <arg value="PHP/PMD/Rule" />
  48. <arg value="text" />
  49. <arg value="${phpmd.rulesets}" />
  50. </exec>
  51. </target>
  52. <!--
  53. Executes the newly created and installed PEAR version of PHPMD.
  54. -->
  55. <target name="-phpmd:package:pear:after~hooked" extensionOf="-package:pear:after~hook">
  56. <echo message="Executing:" level="verbose" />
  57. <echo message=" phpmd PHP/PMD/Rule text ${phpmd.rulesets}" level="verbose" />
  58. <exec dir="${commons.srcdir.php}"
  59. executable="${commons.executable.php}"
  60. failonerror="true">
  61. <arg value="-d" />
  62. <arg value="include_path=${common-pear-root-dir}" />
  63. <arg value="${common-pear-bin-dir}/phpmd" />
  64. <arg value="PHP/PMD/Rule" />
  65. <arg value="text" />
  66. <arg value="${phpmd.rulesets}" />
  67. </exec>
  68. </target>
  69. </project>