| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project xmlns:d2a="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd"
- basedir="../../."
- default="project.write"
- name="dita-to-ant">
- <include as="PRODUCT" file="build.d2a.PRODUCT.xml"/>
- <include as="SYSTEM" file="build.d2a.SYSTEM.xml"/>
- <include as="INSTALL" file="build.d2a.INSTALL.xml"/>
- <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
-
- <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
- <include file="../system_ui_info_speech/build_system_ui_info_speech.xml" as="p5suis"/>
-
- <!--<include file="../dita_kosztorys_projektowy/build.p5dkp.ditafiles.xml.xml" as="ditafiles" />-->
- <import file="../dita_kosztorys_projektowy/build.p5dkp.PRODUCT.xml" as="p5dkp" />
-
-
-
-
- <!---Dd2a.new_module.INPUT=bocian-graph-2-html-test -Dd2a.ditamap.INPUT=/Users/a.binder/procesy5-dita-templates-druki/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/bocian-graph-to-html/example_last20.dita-->
- <property name="d2a.new_module.INPUT" value="html2image"/>
- <property name="d2a.ditamap.INPUT" location="/Users/a.binder/procesy5-dita-templates-druki/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/html2image/html2image_0.dita"/>
-
- <target depends="PRODUCT.PRODUCT,INSTALL.INSTALL" name="default"/>
-
-
- <target description="generate function from dita file"
- name="project"
- >
-
- <!--<antcall target="p5suis.p5suis.say_to_queue.copy_file">
- <param name="p5suis.say_to_queue.copy_file" value="${p5dkp.ditafiles.say.xml}"/>
- </antcall>-->
- <echo> $basedir - ${basedir} </echo>
- <input addproperty="d2a.ditamap.INPUT" message="podaj mape produktu, ktory chcesz przetwarzac"/>
- <input addproperty="d2a.new_module.INPUT" message="podaj nazwe modulu docelowego "/>
-
- <antcall target="p5suis.p5suis:say_to_queue.PL">
- <param name="p5suis:say_text" value="Tworzę automatycznie funkcje na podstawie specyfikacji dita z p5:file ${d2a.ditamap.INPUT}"/>
- </antcall>
-
- <ant antfile="build_dita_kosztorys_projektowy.xml" target="ditafiles.xml" dir="${basedir}/WPS_Functions/dita_kosztorys_projektowy"/>
-
- <fail unless="p5dkp.ditafiles.xml">not retrieved expected p5dkp.ditafiles.xml ${p5dkp.ditafiles.xml}</fail>
- <property name="d2a.new_ant_project" location="${d2a.repository}/${d2a.new_module.INPUT}/build_${d2a.new_module.INPUT}.xml"/>
-
- <xslt basedir="$d2a.basedir"
- destdir="$d2a.temp"
- force="true"
- in="${p5dkp.ditafiles.xml}"
- out="${d2a.new_ant_project}"
- style="${d2a.ditamap.xsl}">
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode"
- value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd}new_ant_project.xml"/>
- <attribute name="http://saxon.sf.net/feature/dtd-validation-recoverable"
- value="true"/>
- </factory>
- <param expression="${d2a.basedir}"
- name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd}basedir"/>
- <param expression="${d2a.repository}"
- name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd}repository"/>
- <param expression="${d2a.temp}"
- name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd}temp"/>
- <param name="d2a.ditamap.INPUT" expression="${d2a.ditamap.INPUT}"/>
- <param name="d2a.new_module.INPUT" expression="${d2a.new_module.INPUT}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <xmlcatalog refid="dita-ot.dtd.catalog"/>
- </xslt>
-
- <exec executable="open">
- <arg file="${d2a.new_ant_project}"/>
- </exec>
- </target>
-
-
-
- <target description="to confirm and write"
- name="project.write"
- depends="project"
- >
- <input addproperty="d2a.new_ant_project" message="type d2a.new_ant_project"/>
- <input addproperty="d2a.new_module.INPUT" message="type d2a.new_module.INPUT"/>
- <property name="d2a.new_ant_project.write.xml" location="${d2a.repository}/${d2a.new_module.INPUT}/d2a.new_ant_project.write.xml"/>
-
- <antcall target="p5suis.p5suis:say_to_queue.PL">
- <param name="p5suis:say_text" value="Zapisuję projekt funkcji do docelowego miejsca p5:file ${d2a.new_ant_project.write.xml} "/>
- </antcall>
-
- <xslt basedir="$d2a.basedir"
- destdir="$d2a.temp"
- force="true"
- in="${d2a.new_ant_project}"
- out="${d2a.new_ant_project.write.xml}"
- style="${d2a.ditamap.write.xsl}">
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode"
- value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd}new_ant_project.write.xml"/>
- <attribute name="http://saxon.sf.net/feature/dtd-validation-recoverable"
- value="true"/>
- </factory>
- <param expression="${d2a.basedir}"
- name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd}basedir"/>
- <param expression="${d2a.repository}"
- name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd}repository"/>
- <param expression="${d2a.temp}"
- name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-to-ant/d2a.xsd}temp"/>
- <param name="d2a.ditamap.INPUT" expression="${d2a.ditamap.INPUT}"/>
- <param name="d2a.new_module.INPUT" expression="${d2a.new_module.INPUT}"/>
- <param name="WPS_Functions.basedir" expression="${WPS_Functions.basedir}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <xmlcatalog refid="dita-ot.dtd.catalog"/>
- </xslt>
-
- <exec executable="open">
- <arg file="${d2a.new_ant_project.write.xml}"/>
- </exec>
- </target>
-
-
- </project>
|