| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project basedir="../../." name="p5dg.schema"
- xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
- xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
- xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
- xmlns:graph="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph/graph.xsd">
- <description>To actualize ant project schema and verify modules relations, validity
- etc</description>
- <include file="build.p5dg.PRODUCT.xml" as="PRODUCT" optional="true"/>
- <include file="build.graph.PRODUCT.xml" as="graph.PRODUCT"/>
- <include file="build.p5dg.product.analyze.xml" as="analyze"/>
- <include file="build_documentation_generator.xml" as="p5dg"/>
- <include file="../build.WPS_Functions.PRODUCT.xml" as="WPS_Functions"/>
- <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
- <include file="../ant/build_ant.xml" as="p5ant"/>
- <include file="../build_WPS_Function_properties.xml" as="p5bws"/>
- <property name="p5dg.schema.xsl" location="${p5dg.basedir}/p5dg.schema.xsl"/>
- <property name="p5dg.schema.xml" location="${p5dg.basedir}/build.p5dg.schema.xml"/>
-
-
-
-
- <target name="p5dg.schema" description="To maintain ant project schema">
- <description>To analyze and veify ant project schema and correctness</description>
- <input addproperty="p5dg.schema.PRODUCT"
- message="type project product module path to verify"/>
- </target>
-
-
- <target name="p5dg.schema.generate.if.old" depends="PRODUCT.temp,PRODUCT.repository">
- <description>To ccheck against if schema is old etc</description>
- <tempfile property="p5dg.schema.generate.if.test.fake.old.file" deleteonexit="yes"
- destdir="${p5dg.temp}" prefix="p5dg.schema.generate.if.test.fake.old.file"
- suffix=".touch"/>
- <touch file="${p5dg.schema.generate.if.test.fake.old.file}"
- datetime="${p5dg.config.oldfile.tstamp}" verbose="false"/>
- <uptodate property="p5dg.schema.generate.if.old"
- targetfile="${p5dg.schema.generated.tstamp}">
- <srcfiles file="${p5dg.schema.generate.if.test.fake.old.file}"/>
- </uptodate>
- <echo>###388 Checking if schema is not too old ${p5dg.schema.generated.tstamp} has result =
- ${p5dg.schema.generate.if.old} </echo>
-
-
- </target>
- <!-- -->
-
-
- <target name="p5dg.schema.generate" unless="p5dg.schema.generate.if.old" description="To generate xsd schema for functions and properties" depends="p5dg.schema.generate.if.old,p5dg.graph.graph.graph-to-analyze-evaluated.xml">
- <!--<input addproperty="p5dg.schema.PRODUCT" message="todo optional limit to only one some schema"/>-->
- <xslt basedir="${p5dg.schema.dir}" style="${p5dg.schema.xsl}" in="${graph.graph-to-analyze-evaluated.xml}" out="${p5dg.schema.generate.xml}">
- <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/documentation_generator/documentation_generator.xsd}schema.generate"/>
- </factory>
- <param name="p5dg.schema.dir" expression="${p5dg.schema.dir}"/>
- <param name="p5dg.schema.dir.log" expression="${p5dg.schema.dir.log}"/>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- </target>
-
-
-
- <target name="graph.graph.graph-to-analyze-property.xml" depends="p5dg.p5dg.properties, p5dg.p5dg.p5ant.include.structure" description="to build structure of ant files to allow creation dependencies maps and documentations"> <!-- depends="p5dg:documentation.files.index" -->
- <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
- <property name="p5suis:say_text" value="evaluating and variables and others" />
- </ant>
- <xslt basedir="${p5dg.temp}" style="${graph.xsl}" in="${p5ant.include.structure.xml}" out="${graph.graph-to-analyze-property.xml}" >
- <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/graph/graph.xsd}graph.graph-to-analyze-property.xml"/>
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>
- </target>
- </project>
|