| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
- xmlns:p5dkp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita_kosztorys_projektowy/p5dkp.xsd"
- xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
- xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
- xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
- xmlns:d2a="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd"
- basedir="../../."
- default="png"
- name="bocian-graph-2-html">
-
- <description>Initially generated by dita-2-ant
- intend to generate graph by xml like bocian graph analyze trafienia.
- </description>
-
- <include file="build.bcgtht.xml.PRODUCT.xml"
- as="PRODUCT"/>
- <include file="../html2image/build_html2image.dita.xml" as="html2image"/>
-
-
- <target name="preprocess">
- <description> to be called from default_db:PROCES_INIT:tree:dita</description>
- <input addproperty="ditadir" message="type ditadir"/>
- <input addproperty="dstfile" message="type dstfile"/>
- <input addproperty="fileindex" message="type fileindex"/>
- <input addproperty="srcfile" message="type srcfile"/>
-
- <antcall target="png">
- <param name="bcgtht.INPUT.xml" value="${srcfile}"/>
- <param name="html2image.application.google_chrome.screenshot.png.OUTPUT" value="${ditadir}/bocian-graph-2-html/${fileindex}.png"/>
- </antcall>
-
- <!--<condition property="barchart.png.empty">
- <length file="${ditadir}/graph_to_image/${fileindex}.png" when="equal" length="0"/>
- </condition>-->
- <!--<property name="barchart.gnuplot" value="${graph_gnuplot_basedir.temp}/graph_to_image/${uuid}/barchart.${fileindex}.gnuplot"/>
- <property name="population.dat" value="${graph_gnuplot_basedir.temp}/graph_to_image/${uuid}/population.${fileindex}.dat"/>
- <property name="barchart.png" value="${graph_gnuplot_basedir.temp}/graph_to_image/${uuid}/barchart.${fileindex}.png"/>-->
- <condition property="bocian-graph-2-html.png.empty">
- <length file="${ditadir}/bocian-graph-2-html/${fileindex}.png" when="equal" length="0"/>
- </condition>
- <condition property="bocian-graph-2-html.png.empty">
- <not>
- <available file="${ditadir}/bocian-graph-2-html/${fileindex}.png" />
- </not>
- </condition>
-
- <antcall target="bocian-graph-2-html.confirm">
- <param name="dstfile" value="${dstfile}"/>
- <param name="fileindex" value="${fileindex}"/>
- <param name="png" value="${png}"/>
- </antcall>
- </target>
-
- <target name="bocian-graph-2-html.confirm" unless="${barchart.png.empty}" description="to confirm that we created .png file">
- <input addproperty="dstfile" message="type confirm file for preprocess"/>
- <input addproperty="fileindex" message="type fileindex for preprocess"/>
- <input addproperty="png" message="type png for preprocess"/>
- <echo> echoxml to ${dstfile} </echo>
- <echoxml file="${dstfile}">
- <bocian-graph-2-html.confirm fileindex="${fileindex}" dstfile="${png}"/>
- </echoxml>
- <echo> EOF echoxml to ${dstfile} </echo>
- </target>
-
- <target name="input" >
- <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"/>
- <input addproperty="html2image.application.google_chrome.screenshot.png.OUTPUT" message="podaj html2image.application.google_chrome.screenshot.png.OUTPUT." defaultvalue="${html2image.temp}/screenshot.png"/>
- <tempfile property="bcgtht.INPUT.output.html" destdir="${bcgtht.basedir}" prefix="bcgtht.INPUT.output.html" suffix=".html"/>
- <tempfile property="html2image.application.google_chrome.screenshot.png.OUTPUT" destdir="${bcgtht.temp}" prefix="html2image.application.google_chrome.screenshot.png.OUTPUT." suffix=".png"/>
- <property name="html2image.module.bocian-graph-to-html.INPUT" location="${bcgtht.INPUT.output.html}"/>
- <!--<exec executable="open">
- <arg file="${html2image.module.bocian-graph-to-html.INPUT}"/>
- </exec>-->
- </target>
-
-
- <target name="png" depends="input,html,html2image.html2image" description="to generate html png " >
- <!--<exec executable="open">
- <arg file="${html2image.application.google_chrome.screenshot.png.OUTPUT}"/>
- </exec>-->
- </target>
-
- <target name="html" ><!--#31 syntaxdiagram-->
- <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"/>
- <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"/>
- <mkdir dir="${bcgtht.repository}"/>
- <mkdir dir="${bcgtht.temp}"/>
-
- <echo>#25 will exec in @dir ${bcgtht.temp}
- cat ${bcgtht.module.bocian-graph-to-html.graph-part-first.html} ${bcgtht.INPUT.xml} ${bcgtht.module.bocian-graph-to-html.graph-part-last.html}
- to ${bcgtht.INPUT.output.html}
- </echo>
-
- <exec executable="cat" dir="${bcgtht.basedir}" output="${bcgtht.INPUT.output.html}" >
- <!--<arg value="-c"/>
- <arg value="cat"/>-->
- <arg value="${bcgtht.module.bocian-graph-to-html.graph-part-first.html}"/>
- <arg value="${bcgtht.INPUT.xml}"/>
- <!--#92 kwd[not(text())]-->
- <!--#92 kwd[not(text())]-->
-
- <!--#92 kwd[not(text())]-->
-
- <!--#92 kwd[not(text())]-->
- <arg value="${bcgtht.module.bocian-graph-to-html.graph-part-last.html}"/>
-
- <!--<arg value=">"/>-->
- <!--<arg value="${bcgtht.INPUT.output.html}"/>-->
- </exec>
- <!--<exec executable="open">
- <arg file="${bcgtht.INPUT.output.html}"/>
- </exec>-->
-
- <!-- generated by dita-to-ant code being reused there
- <exec executable="bash" dir="${bcgtht.temp}">
- <arg value="-c"/>
- <arg value="example-graph-api-last20.html"/>
- <!-\-#92 kwd[not(text())]-\->
- <!-\-#92 kwd[not(text())]-\->
- <arg value="${module.bocian-graph-to-html.graph-part-first.html}"/>
- <!-\-#92 kwd[not(text())]-\->
- <arg value="${module.bocian-graph-to-html.example-graph-api-last20.xml}"/>
- <!-\-#92 kwd[not(text())]-\->
- <arg value="${module.bocian-graph-to-html.graph-part-last.html}"/>
- <arg value="${platform.shell.bash.ARGS.redirect}"/>
- <arg value="${module.bocian-graph-to-html.example-graph-api-last20.html}"/>
- </exec>-->
- </target>
-
- </project>
|