build.p5dg.schema.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. <extension-point 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 , p5dg.schema.generate__x3A__transform"/>
  40. <target name="p5dg.schema.generate__x3A__transform" unless="p5dg.schema.generate.if.old" >
  41. <!--<input addproperty="p5dg.schema.PRODUCT" message="todo optional limit to only one some schema"/>-->
  42. <echo>#52 [ S C H E M A ] __x3A__transform
  43. input ${graph.graph-to-analyze-evaluated.xml}
  44. output ${p5dg.schema.generate.xml}
  45. </echo>
  46. <xslt basedir="${p5dg.schema.dir}" style="${p5dg.schema.xsl}" in="${graph.graph-to-analyze-evaluated.xml}" out="${p5dg.schema.generate.xml}">
  47. <factory name="net.sf.saxon.TransformerFactoryImpl">
  48. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  49. <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"/>
  50. </factory>
  51. <param name="p5dg.schema.dir" expression="${p5dg.schema.dir}"/>
  52. <param name="p5dg.schema.dir.log" expression="${p5dg.schema.dir.log}"/>
  53. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  54. </xslt>
  55. <antcall target="p5ant.safety.say_and_open_file.drop_overflow">
  56. <param name="local.p5ant.safety.limit.file.size__x3A__open_file" value="20"/>
  57. <param name="local.p5ant.safety.limit.file.size__x3A__open_file.units" value="M"/>
  58. <param name="local.p5ant.safety.filename" value="${p5dg.schema.generate.xml}"/>
  59. </antcall>
  60. </target>
  61. <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" -->
  62. <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
  63. <property name="p5suis:say_text" value="evaluating and variables and others" />
  64. </ant>
  65. <xslt basedir="${p5dg.temp}" style="${graph.xsl}" in="${p5ant.include.structure.xml}" out="${graph.graph-to-analyze-property.xml}" >
  66. <factory name="net.sf.saxon.TransformerFactoryImpl">
  67. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  68. <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"/>
  69. </factory>
  70. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  71. </xslt>
  72. </target>
  73. </project>