build_html2image.dita.xml 5.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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:ditaarch="http://dita.oasis-open.org/architecture/2005/"
  8. xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
  9. xmlns:d2a="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd"
  10. basedir="../../."
  11. default="html2image"
  12. name="html2image">
  13. <include file="build_html2image.dita.PRODUCT.xml"
  14. as="PRODUCT"/>
  15. <target name="html2image"><!--#38 syntaxdiagram mode="d2a:new_ant_project.child.task.bash"-->
  16. <input addproperty="html2image.module.bocian-graph-to-html.INPUT" message="podaj wejsciowy html html2image.module.bocian-graph-to-html.INPUT" defaultvalue="${html2image.module.bocian-graph-to-html.example-graph-api-id-12.html}"/> <!-- module.bocian-graph-to-html.example-graph-api-id-12.html -->
  17. <input addproperty="html2image.application.google_chrome.screenshot.png.OUTPUT" message="podaj html2image.application.google_chrome.screenshot.png.OUTPUT" defaultvalue="${html2image.temp}/screenshot.png"/>
  18. <!--<property name="html2image.wymagania.funkcje.output.dir.screenshot" location="${html2image.wymagania.funkcje.output.dir}/screenshot.png"/>-->
  19. <tempfile property="html2image.application.google_chrome.screenshot.png.OUTPUT.temp" prefix="html2image.application.google_chrome.screenshot.png.OUTPUT.temp" suffix=".touch" destdir="${html2image.temp}"/>
  20. <echo>#211 stworzylem html2image.application.google_chrome.screenshot.png.OUTPUT.temp = ${html2image.application.google_chrome.screenshot.png.OUTPUT.temp}</echo>
  21. <property name="html2image.tempfile.dir" value="${html2image.application.google_chrome.screenshot.png.OUTPUT.temp}_dir"/>
  22. <delete file="${html2image.application.google_chrome.screenshot.png.OUTPUT.temp}"/>
  23. <mkdir dir="${html2image.application.google_chrome.screenshot.png.OUTPUT.temp}"/>
  24. <mkdir dir="${html2image.tempfile.dir}"/>
  25. <property name="html2image.application.google_chrome.screenshot.png.OUTPUT.temp.screenshot.png" location="${html2image.tempfile.dir}/screenshot.png"/>
  26. <echo>
  27. $html2image.tempfile.dir (/screenshot.png) = ${html2image.tempfile.dir}
  28. #29 $html2image.application.google_chrome.screenshot.png.OUTPUT.temp.screenshot.png = ${html2image.application.google_chrome.screenshot.png.OUTPUT.temp.screenshot.png}
  29. </echo>
  30. <mkdir dir="${html2image.temp}"/> <!-- todo another task -->
  31. <!--
  32. TO IMPLEMENT TODO
  33. <prereq id="prereq_hvb_k4v_n2b">
  34. <syntaxdiagram id="syntaxdiagram_d1k_4pv_n2b">
  35. <title>ustalenie pliku wyjściowego</title>
  36. </syntaxdiagram>
  37. <!-\-<data>
  38. <userinput/><systemoutput><varname>$Output_DIR</varname></systemoutput></data>-\->
  39. <data keyref="wymagania.funkcje.output">
  40. <filepath>/Users/a.binder/Download/</filepath>
  41. <apiname keyref="wymagania.funkcje.output"/></data>
  42. </prereq>-->
  43. <condition property="aviable">
  44. <available file="${html2image.application.google_chrome.install_dest_on_macOS}"></available>
  45. </condition>
  46. <echo> #35 aviable = ${aviable}</echo>
  47. <echo>#60 will run ${html2image.application.google_chrome.install_dest_on_macOS}
  48. ${html2image.application.google_chrome.--headless}
  49. ${html2image.application.google_chrome.--disable-gpu}
  50. ${html2image.application.google_chrome.--screenshot}
  51. ${html2image.application.google_chrome.--window-size}
  52. ${html2image.module.bocian-graph-to-html.INPUT}
  53. </echo>
  54. <exec executable="${html2image.application.google_chrome.install_dest_on_macOS}"
  55. dir="${html2image.tempfile.dir}">
  56. <arg value="-c"/>
  57. <arg value="${html2image.application.google_chrome.--headless}"/>
  58. <arg value="${html2image.application.google_chrome.--disable-gpu}"/>
  59. <arg value="${html2image.application.google_chrome.--screenshot}"/>
  60. <arg value="${html2image.application.google_chrome.--window-size}"/>
  61. <arg path="${html2image.module.bocian-graph-to-html.INPUT}"/>
  62. </exec>
  63. <!-- respond file to requested position -->
  64. <move file="${html2image.application.google_chrome.screenshot.png.OUTPUT.temp.screenshot.png}" tofile="${html2image.application.google_chrome.screenshot.png.OUTPUT}"/>
  65. <delete dir="${html2image.application.google_chrome.screenshot.png.OUTPUT.temp}" verbose="yes"/>
  66. </target>
  67. </project>