build.pth2d.PRODUCT.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:pth2d="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/html2dita/html2dita.xsd"
  3. xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
  4. basedir="../../."
  5. default="PRODUCT"
  6. name="pth2d.PRODUCT">
  7. <description>p5suis:say Created function html2dita with prefix pth2d by p5ant module</description>
  8. <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
  9. <include file="build.pth2d.INSTALL.xml" as="INSTALL" optional="true"/>
  10. <condition property="pth2d.PRODUCT.ifdef.parent"
  11. taskname="pth2d.parent.PRODUCT.ifdef">
  12. <isset property="WPS_Functions.PRODUCT.name"/>
  13. </condition>
  14. <property name="pth2d.PRODUCT.name"
  15. value="${WPS_Functions.PRODUCT.name}.html2dita"/>
  16. <property name="pth2d.PRODUCT.vendor-domain"
  17. value="${WPS_Functions.PRODUCT.name}.pth2d"/>
  18. <property name="pth2d.basedir" value="${WPS_Functions.basedir}/html2dita"/>
  19. <property name="pth2d.build.xml" value="${pth2d.basedir}/build_pth2d.xml"/>
  20. <property name="pth2d.repository" value="${WPS_Functions.repository}/html2dita"/>
  21. <property name="pth2d.install" value="${pth2d.basedir}/install"/>
  22. <property location="${WPS_Functions.temp}/html2dita" name="pth2d.temp"/>
  23. <property location="${pth2d.basedir}/pth2d.xsl" name="pth2d.xsl"/>
  24. <property location="${pth2d.basedir}/pth2d.xsd" name="pth2d.xsd"/>
  25. <property location="${pth2d.basedir}/pth2d.include.structure.xml"
  26. name="pth2d.include.structure.xml"/>
  27. <property location="${pth2d.basedir}/pth2d.include.xsl.p5xsls.xml"
  28. name="pth2d.include.xsl.p5xsls.xml"/>
  29. <property location="${pth2d.repository}/install_example.file"
  30. name="pth2d.install_example"/>
  31. <property name="pth2d.saxon.sh" location="${pth2d.basedir}/install/saxon.sh"/>
  32. <property name="pth2d.saxon" location="${p5build.opt__local}/bin/saxon"/>
  33. <property name="html2dita.git.url" value="https://github.com/dita-ot/ext-plugins.git"/>
  34. <property name="html2dita.git" location="${pth2d.repository}/html2dita.git"/>
  35. <property name="html2dita.build.xml" location="${pth2d.repository}/html2dita.git/ext-plugins/h2d/build.xml"/>
  36. <target depends="basedir,p5xsls.xml,INSTALL.INSTALL"
  37. description="to create basedir, includes and install"
  38. name="PRODUCT"/>
  39. <target description="to create local dirs" name="basedir">
  40. <propertyset id="pth2d.local.properties">
  41. <propertyref prefix="pth2d"/>
  42. <mapper from="pth2d.*" to="local.*" type="glob"/>
  43. </propertyset>
  44. <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
  45. <propertyset refid="pth2d.local.properties"/>
  46. </antcall>
  47. </target>
  48. <target description="To delete all temp and repository" name="clean">
  49. <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
  50. <propertyset refid="pth2d.local.properties"/>
  51. </antcall>
  52. </target>
  53. <target description="To delete all temp and repository" name="clean.temp">
  54. <antcall inheritall="false"
  55. target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
  56. <propertyset refid="pth2d.local.properties"/>
  57. </antcall>
  58. </target>
  59. <target name="parent.PRODUCT.ifdef"
  60. unless="pth2d.WPS_Functions.PRODUCT.ifdef.parent">
  61. <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
  62. </target>
  63. <target name="p5xsls.xml" depends="basedir">
  64. <description>
  65. TODO to be fixed by xslt to allow dynamic create of multi include xsl templates
  66. </description>
  67. <echoxml namespacepolicy="elementsOnly" file="${pth2d.include.xsl.p5xsls.xml}">
  68. <stylesheet_buildlist xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
  69. <namespaces.list>
  70. <namespaces.list.namespace prefix="pth2d"
  71. namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/html2dita/html2dita.xsd"/>
  72. </namespaces.list>
  73. <include.list>
  74. <include.list.href href="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/ant/p5ant.xsl"/>
  75. </include.list>
  76. </stylesheet_buildlist>
  77. </echoxml>
  78. </target>
  79. </project>