build.p5dg.schema.xml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="../../." name="p5dg.schema"
  3. xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
  4. xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
  5. xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
  6. xmlns:graph="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph/graph.xsd">
  7. <description>To actualize ant project schema and verify modules relations, validity
  8. etc</description>
  9. <include file="build.p5dg.PRODUCT.xml" as="PRODUCT" optional="true"/>
  10. <include file="build.graph.PRODUCT.xml" as="graph.PRODUCT"/>
  11. <include file="build.p5dg.product.analyze.xml" as="analyze"/>
  12. <include file="build_documentation_generator.xml" as="p5dg"/>
  13. <include file="../build.WPS_Functions.PRODUCT.xml" as="WPS_Functions"/>
  14. <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
  15. <include file="../ant/build_ant.xml" as="p5ant"/>
  16. <include file="../build_WPS_Function_properties.xml" as="p5bws"/>
  17. <property name="p5dg.schema.xsl" location="${p5dg.basedir}/p5dg.schema.xsl"/>
  18. <property name="p5dg.schema.xml" location="${p5dg.basedir}/build.p5dg.schema.xml"/>
  19. <target name="p5dg.schema" description="To maintain ant project schema">
  20. <description>To analyze and veify ant project schema and correctness</description>
  21. <input addproperty="p5dg.schema.PRODUCT"
  22. message="type project product module path to verify"/>
  23. </target>
  24. <target name="p5dg.schema.generate.if.old" depends="PRODUCT.temp,PRODUCT.repository">
  25. <description>To ccheck against if schema is old etc</description>
  26. <tempfile property="p5dg.schema.generate.if.test.fake.old.file" deleteonexit="yes"
  27. destdir="${p5dg.temp}" prefix="p5dg.schema.generate.if.test.fake.old.file"
  28. suffix=".touch"/>
  29. <touch file="${p5dg.schema.generate.if.test.fake.old.file}"
  30. datetime="${p5dg.config.oldfile.tstamp}" verbose="false"/>
  31. <uptodate property="p5dg.schema.generate.if.old"
  32. targetfile="${p5dg.schema.generated.tstamp}">
  33. <srcfiles file="${p5dg.schema.generate.if.test.fake.old.file}"/>
  34. </uptodate>
  35. <echo>###388 Checking if schema is not too old ${p5dg.schema.generated.tstamp} has result =
  36. ${p5dg.schema.generate.if.old} </echo>
  37. </target>
  38. <!-- -->
  39. <target name="p5dg.schema.generate" unless="p5dg.schema.generate.if.old" description="To generate xsd schema for functions and properties" depends="p5dg.schema.generate.if.old,p5dg.graph.graph.graph-to-analyze-evaluated.xml">
  40. <!--<input addproperty="p5dg.schema.PRODUCT" message="todo optional limit to only one some schema"/>-->
  41. <xslt basedir="${p5dg.schema.dir}" style="${p5dg.schema.xsl}" in="${graph.graph-to-analyze-evaluated.xml}" out="${p5dg.schema.generate.xml}">
  42. <factory name="net.sf.saxon.TransformerFactoryImpl">
  43. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  44. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd}schema.generate"/>
  45. </factory>
  46. <param name="p5dg.schema.dir" expression="${p5dg.schema.dir}"/>
  47. <param name="p5dg.schema.dir.log" expression="${p5dg.schema.dir.log}"/>
  48. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  49. </xslt>
  50. </target>
  51. <target name="graph.graph.graph-to-analyze-property.xml" depends="p5dg.p5dg.properties, p5dg.p5dg.p5ant.include.structure" description="to build structure of ant files to allow creation dependencies maps and documentations"> <!-- depends="p5dg:documentation.files.index" -->
  52. <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
  53. <property name="p5suis:say_text" value="evaluating and variables and others" />
  54. </ant>
  55. <xslt basedir="${p5dg.temp}" style="${graph.xsl}" in="${p5ant.include.structure.xml}" out="${graph.graph-to-analyze-property.xml}" >
  56. <factory name="net.sf.saxon.TransformerFactoryImpl">
  57. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  58. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph/graph.xsd}graph.graph-to-analyze-property.xml"/>
  59. </factory>
  60. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  61. </xslt>
  62. </target>
  63. </project>