build.d2a.PRODUCT.xml 4.0 KB

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