| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- <?xml version="1.0" encoding="UTF-8"?>
- <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"
- 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"
- basedir="../../."
- default="example"
- name="p5RvJiE.render">
- <description>p5suis:say Created function module render-vis-js-in-electron--v0.0.1 with prefix p5RvJiE by p5ant module module</description>
- <include as="PRODUCT" file="build.p5RvJiE.render.PRODUCT.xml"/>
-
- <condition property="p5RvJiE.render.if.exists">
- <available file="${p5RvJiE.basedir}/p5RvJiE.render"/>
- </condition>
- <extension-point name="default" depends="activate" />
- <target name="activate"
- description="To enable module ${p5RvJiE.render.repository}"
- unless="p5RvJiE.render.if.exists">
- <mkdir dir="${p5RvJiE.render.repository}"/>
-
- </target>
-
- <target name="example" description="to build example output">
- <exec executable="bash" dir="${p5RvJiE.install}" >
- <arg value="-c"/>
- <arg value="PATH=$PATH:/opt/local/bin ; cd ${p5RvJiE.install} ; make example-01"/>
- </exec>
- <!--<exec executable="open">
- <arg file="${p5RvJiE.render.examples.example.png}"/>
- </exec>-->
- </target>
-
-
-
-
- <target name="preprocess">
- <echo>#31 todo preprocess </echo>
- </target>
-
- <target name="electron__x3A__if_installed" unless="electron">
- <fail>#38 not installed ${electron} DO INSTALL FIRST - ant -f build_render-vis-js-in-electron--v0.0.1.xml install </fail>
- </target>
-
-
- <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"/>
-
- <target name="render__x3A__input">
- <input addproperty="local.p5RvJiE.render.input.xml" message="local.p5RvJiE.render.input.xml" defaultvalue="${p5RvJiE.render.examples.example.in.xml}"/>
- <input addproperty="local.p5RvJiE.render.output.dir" message="local.p5RvJiE.render.output.dir" defaultvalue="${p5RvJiE.render.examples.example.out.dir}"/>
- </target>
-
- <target name="render__x3A__input__x3A__evaluate" depends="render__x3A__input">
- <input addproperty="local.p5RvJiE.render.input.xml"/>
- <property name="local.p5RvJiE.render.output.xml" location="${local.p5RvJiE.render.output.dir}/coords.1.xml"/>
- <property name="local.p5RvJiE.render.output.png" location="${local.p5RvJiE.render.output.dir}/graph.1.png"/>
- <property name="local.p5RvJiE.render.output.json" location="${local.p5RvJiE.render.output.dir}/coords.1.json "/>
- <echo>#53 [ R E N D E R ] EVALUATE vars
- in $local.p5RvJiE.render.input.xml ${local.p5RvJiE.render.input.xml}
- outs
- $local.p5RvJiE.render.output.xml = ${local.p5RvJiE.render.output.xml}
- $local.p5RvJiE.render.output.png = ${local.p5RvJiE.render.output.png}
- $local.p5RvJiE.render.output.json = ${local.p5RvJiE.render.output.json}
- </echo>
- </target>
-
-
-
- <target name="render__x3A__action" depends="render__x3A__input__x3A__evaluate">
- <echo>#66 [ R E N D E R ] [ A C T I O N ] $${electron} = ${electron}
- dir="${p5RvJiE.install}"
- line="${local.p5RvJiE.render.input.xml}"
- line="${local.p5RvJiE.render.output.dir}"
- </echo>
- <exec executable="${electron}" dir="${p5RvJiE.install}" >
- <arg line="index.js"/>
- <arg line="${local.p5RvJiE.render.input.xml}"/>
- <arg line="${local.p5RvJiE.render.output.dir}"/>
- </exec>
- </target>
-
-
- <target name="render__x3A__action__x3A__validate">
- <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}">
- <not><available file="${local.p5RvJiE.render.output.xml}"/></not>
- </condition>
- <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}
- ">
- <not><available file="${local.p5RvJiE.render.output.png}"/></not>
- </condition>
- <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}
- ">
- <or>
- <isset property="local.p5RvJiE.render.output.xml__x3A__validate__x3A__error"/>
- <isset property="local.p5RvJiE.render.output.png__x3A__validate__x3A__error"/>
- </or>
- </condition>
- </target>
-
- <target name="render__x3A__action__x3A__error__x3A__notify" if="render__x3A__action__x3A__error_flag">
- <fail>#87 [ R E N D E R ] error ${render__x3A__action__x3A__error_flag}
- $local.p5RvJiE.render.output.dir = ${local.p5RvJiE.render.output.dir}
- </fail>
- </target>
-
-
-
- </project>
|