build.bcgtht.xml.xml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
  3. xmlns:p5dkp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd"
  4. xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
  5. xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
  6. xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
  7. xmlns:d2a="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd"
  8. basedir="../../."
  9. default="png"
  10. name="bocian-graph-2-html">
  11. <description>Initially generated by dita-2-ant
  12. intend to generate graph by xml like bocian graph analyze trafienia.
  13. </description>
  14. <include file="build.bcgtht.xml.PRODUCT.xml"
  15. as="PRODUCT"/>
  16. <include file="../html2image/build_html2image.dita.xml" as="html2image"/>
  17. <target name="preprocess">
  18. <description> to be called from default_db:PROCES_INIT:tree:dita</description>
  19. <input addproperty="ditadir" message="type ditadir"/>
  20. <input addproperty="dstfile" message="type dstfile"/>
  21. <input addproperty="fileindex" message="type fileindex"/>
  22. <input addproperty="srcfile" message="type srcfile"/>
  23. <antcall target="png">
  24. <param name="bcgtht.INPUT.xml" value="${srcfile}"/>
  25. <param name="html2image.application.google_chrome.screenshot.png.OUTPUT" value="${ditadir}/bocian-graph-2-html/${fileindex}.png"/>
  26. </antcall>
  27. <!--<condition property="barchart.png.empty">
  28. <length file="${ditadir}/graph_to_image/${fileindex}.png" when="equal" length="0"/>
  29. </condition>-->
  30. <!--<property name="barchart.gnuplot" value="${graph_gnuplot_basedir.temp}/graph_to_image/${uuid}/barchart.${fileindex}.gnuplot"/>
  31. <property name="population.dat" value="${graph_gnuplot_basedir.temp}/graph_to_image/${uuid}/population.${fileindex}.dat"/>
  32. <property name="barchart.png" value="${graph_gnuplot_basedir.temp}/graph_to_image/${uuid}/barchart.${fileindex}.png"/>-->
  33. <condition property="bocian-graph-2-html.png.empty">
  34. <length file="${ditadir}/bocian-graph-2-html/${fileindex}.png" when="equal" length="0"/>
  35. </condition>
  36. <condition property="bocian-graph-2-html.png.empty">
  37. <not>
  38. <available file="${ditadir}/bocian-graph-2-html/${fileindex}.png" />
  39. </not>
  40. </condition>
  41. <antcall target="bocian-graph-2-html.confirm">
  42. <param name="dstfile" value="${dstfile}"/>
  43. <param name="fileindex" value="${fileindex}"/>
  44. <param name="png" value="${png}"/>
  45. </antcall>
  46. </target>
  47. <target name="bocian-graph-2-html.confirm" unless="${barchart.png.empty}" description="to confirm that we created .png file">
  48. <input addproperty="dstfile" message="type confirm file for preprocess"/>
  49. <input addproperty="fileindex" message="type fileindex for preprocess"/>
  50. <input addproperty="png" message="type png for preprocess"/>
  51. <echo> echoxml to ${dstfile} </echo>
  52. <echoxml file="${dstfile}">
  53. <bocian-graph-2-html.confirm fileindex="${fileindex}" dstfile="${png}"/>
  54. </echoxml>
  55. <echo> EOF echoxml to ${dstfile} </echo>
  56. </target>
  57. <target name="input" >
  58. <input addproperty="bcgtht.INPUT.xml" message="type bcgtht.INPUT.xml like example-graph-api-last20.xml" defaultvalue="${bcgtht.basedir}/example-xml/example-graph-api-last20.xml"/>
  59. <input addproperty="html2image.application.google_chrome.screenshot.png.OUTPUT" message="podaj html2image.application.google_chrome.screenshot.png.OUTPUT." defaultvalue="${html2image.temp}/screenshot.png"/>
  60. <tempfile property="bcgtht.INPUT.output.html" destdir="${bcgtht.basedir}" prefix="bcgtht.INPUT.output.html" suffix=".html"/>
  61. <tempfile property="html2image.application.google_chrome.screenshot.png.OUTPUT" destdir="${bcgtht.temp}" prefix="html2image.application.google_chrome.screenshot.png.OUTPUT." suffix=".png"/>
  62. <property name="html2image.module.bocian-graph-to-html.INPUT" location="${bcgtht.INPUT.output.html}"/>
  63. <!--<exec executable="open">
  64. <arg file="${html2image.module.bocian-graph-to-html.INPUT}"/>
  65. </exec>-->
  66. </target>
  67. <target name="png" depends="input,html,html2image.html2image" description="to generate html png " >
  68. <!--<exec executable="open">
  69. <arg file="${html2image.application.google_chrome.screenshot.png.OUTPUT}"/>
  70. </exec>-->
  71. </target>
  72. <target name="html" ><!--#31 syntaxdiagram-->
  73. <input addproperty="bcgtht.INPUT.xml" message="type bcgtht.INPUT.xml like example-graph-api-last20.xml" defaultvalue="${bcgtht.basedir}/example-xml/example-graph-api-last20.xml"/>
  74. <input addproperty="bcgtht.INPUT.output.html" message="type bcgtht.INPUT.output.html like example-graph-api-last20.html" defaultvalue="${bcgtht.basedir}/example-graph-api-last20.html"/>
  75. <mkdir dir="${bcgtht.repository}"/>
  76. <mkdir dir="${bcgtht.temp}"/>
  77. <echo>#25 will exec in @dir ${bcgtht.temp}
  78. cat ${bcgtht.module.bocian-graph-to-html.graph-part-first.html} ${bcgtht.INPUT.xml} ${bcgtht.module.bocian-graph-to-html.graph-part-last.html}
  79. to ${bcgtht.INPUT.output.html}
  80. </echo>
  81. <exec executable="cat" dir="${bcgtht.basedir}" output="${bcgtht.INPUT.output.html}" >
  82. <!--<arg value="-c"/>
  83. <arg value="cat"/>-->
  84. <arg value="${bcgtht.module.bocian-graph-to-html.graph-part-first.html}"/>
  85. <arg value="${bcgtht.INPUT.xml}"/>
  86. <!--#92 kwd[not(text())]-->
  87. <!--#92 kwd[not(text())]-->
  88. <!--#92 kwd[not(text())]-->
  89. <!--#92 kwd[not(text())]-->
  90. <arg value="${bcgtht.module.bocian-graph-to-html.graph-part-last.html}"/>
  91. <!--<arg value="&gt;"/>-->
  92. <!--<arg value="${bcgtht.INPUT.output.html}"/>-->
  93. </exec>
  94. <!--<exec executable="open">
  95. <arg file="${bcgtht.INPUT.output.html}"/>
  96. </exec>-->
  97. <!-- generated by dita-to-ant code being reused there
  98. <exec executable="bash" dir="${bcgtht.temp}">
  99. <arg value="-c"/>
  100. <arg value="example-graph-api-last20.html"/>
  101. <!-\-#92 kwd[not(text())]-\->
  102. <!-\-#92 kwd[not(text())]-\->
  103. <arg value="${module.bocian-graph-to-html.graph-part-first.html}"/>
  104. <!-\-#92 kwd[not(text())]-\->
  105. <arg value="${module.bocian-graph-to-html.example-graph-api-last20.xml}"/>
  106. <!-\-#92 kwd[not(text())]-\->
  107. <arg value="${module.bocian-graph-to-html.graph-part-last.html}"/>
  108. <arg value="${platform.shell.bash.ARGS.redirect}"/>
  109. <arg value="${module.bocian-graph-to-html.example-graph-api-last20.html}"/>
  110. </exec>-->
  111. </target>
  112. </project>