build.p5RvJiE.render.xml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:p5RvJiE="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/render-vis-js-in-electron--v0.0.1/render-vis-js-in-electron--v0.0.1.xsd"
  3. xmlns:p5RvJiE.render="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/render-vis-js-in-electron--v0.0.1/render-vis-js-in-electron--v0.0.1.render.xsd"
  4. basedir="../../."
  5. default="example"
  6. name="p5RvJiE.render">
  7. <description>p5suis:say Created function module render-vis-js-in-electron--v0.0.1 with prefix p5RvJiE by p5ant module module</description>
  8. <include as="PRODUCT" file="build.p5RvJiE.render.PRODUCT.xml"/>
  9. <condition property="p5RvJiE.render.if.exists">
  10. <available file="${p5RvJiE.basedir}/p5RvJiE.render"/>
  11. </condition>
  12. <extension-point name="default" depends="activate" />
  13. <target name="activate"
  14. description="To enable module ${p5RvJiE.render.repository}"
  15. unless="p5RvJiE.render.if.exists">
  16. <mkdir dir="${p5RvJiE.render.repository}"/>
  17. </target>
  18. <target name="example" description="to build example output">
  19. <exec executable="bash" dir="${p5RvJiE.install}" >
  20. <arg value="-c"/>
  21. <arg value="PATH=$PATH:/opt/local/bin ; cd ${p5RvJiE.install} ; make example-01"/>
  22. </exec>
  23. <!--<exec executable="open">
  24. <arg file="${p5RvJiE.render.examples.example.png}"/>
  25. </exec>-->
  26. </target>
  27. <target name="preprocess">
  28. <echo>#31 todo preprocess </echo>
  29. </target>
  30. <target name="electron__x3A__if_installed" unless="electron">
  31. <fail>#38 not installed ${electron} DO INSTALL FIRST - ant -f build_render-vis-js-in-electron--v0.0.1.xml install </fail>
  32. </target>
  33. <extension-point name="render" depends="electron__x3A__if_installed,render__x3A__input,render__x3A__input__x3A__evaluate,render__x3A__action,render__x3A__action__x3A__validate,render__x3A__action__x3A__error__x3A__notify"/>
  34. <target name="render__x3A__input">
  35. <input addproperty="local.p5RvJiE.render.input.xml" message="local.p5RvJiE.render.input.xml" defaultvalue="${p5RvJiE.render.examples.example.in.xml}"/>
  36. <input addproperty="local.p5RvJiE.render.output.dir" message="local.p5RvJiE.render.output.dir" defaultvalue="${p5RvJiE.render.examples.example.out.dir}"/>
  37. </target>
  38. <target name="render__x3A__input__x3A__evaluate" depends="render__x3A__input">
  39. <input addproperty="local.p5RvJiE.render.input.xml"/>
  40. <property name="local.p5RvJiE.render.output.xml" location="${local.p5RvJiE.render.output.dir}/coords.1.xml"/>
  41. <property name="local.p5RvJiE.render.output.png" location="${local.p5RvJiE.render.output.dir}/graph.1.png"/>
  42. <property name="local.p5RvJiE.render.output.json" location="${local.p5RvJiE.render.output.dir}/coords.1.json "/>
  43. <echo>#53 [ R E N D E R ] EVALUATE vars
  44. in $local.p5RvJiE.render.input.xml ${local.p5RvJiE.render.input.xml}
  45. outs
  46. $local.p5RvJiE.render.output.xml = ${local.p5RvJiE.render.output.xml}
  47. $local.p5RvJiE.render.output.png = ${local.p5RvJiE.render.output.png}
  48. $local.p5RvJiE.render.output.json = ${local.p5RvJiE.render.output.json}
  49. </echo>
  50. </target>
  51. <target name="render__x3A__action" depends="render__x3A__input__x3A__evaluate">
  52. <echo>#66 [ R E N D E R ] [ A C T I O N ] $${electron} = ${electron}
  53. dir="${p5RvJiE.install}"
  54. line="${local.p5RvJiE.render.input.xml}"
  55. line="${local.p5RvJiE.render.output.dir}"
  56. </echo>
  57. <exec executable="${electron}" dir="${p5RvJiE.install}" >
  58. <arg line="index.js"/>
  59. <arg line="${local.p5RvJiE.render.input.xml}"/>
  60. <arg line="${local.p5RvJiE.render.output.dir}"/>
  61. </exec>
  62. </target>
  63. <target name="render__x3A__action__x3A__validate">
  64. <condition property="local.p5RvJiE.render.output.xml__x3A__validate__x3A__error" value="local.p5RvJiE.render.output.xml__x3A__validate__x3A__error ERROR NOT AVIABLE at ${local.p5RvJiE.render.output.xml}">
  65. <not><available file="${local.p5RvJiE.render.output.xml}"/></not>
  66. </condition>
  67. <condition property="local.p5RvJiE.render.output.png__x3A__validate__x3A__error" value="local.p5RvJiE.render.output.png__x3A__validate__x3A__error ERROR NOT AVIABLE at ${local.p5RvJiE.render.output.png}
  68. ">
  69. <not><available file="${local.p5RvJiE.render.output.png}"/></not>
  70. </condition>
  71. <condition property="render__x3A__action__x3A__error_flag" value="render__x3A__action__x3A__error_flag of or ${local.p5RvJiE.render.output.xml__x3A__validate} or ${local.p5RvJiE.render.output.png__x3A__validate}
  72. ">
  73. <or>
  74. <isset property="local.p5RvJiE.render.output.xml__x3A__validate__x3A__error"/>
  75. <isset property="local.p5RvJiE.render.output.png__x3A__validate__x3A__error"/>
  76. </or>
  77. </condition>
  78. </target>
  79. <target name="render__x3A__action__x3A__error__x3A__notify" if="render__x3A__action__x3A__error_flag">
  80. <fail>#87 [ R E N D E R ] error ${render__x3A__action__x3A__error_flag}
  81. $local.p5RvJiE.render.output.dir = ${local.p5RvJiE.render.output.dir}
  82. </fail>
  83. </target>
  84. </project>