| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- <?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>
- <!-- -->
-
- <extension-point 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 , p5dg.schema.generate__x3A__transform"/>
-
- <target name="p5dg.schema.generate__x3A__transform" unless="p5dg.schema.generate.if.old" >
- <!--<input addproperty="p5dg.schema.PRODUCT" message="todo optional limit to only one some schema"/>-->
- <echo>#52 [ S C H E M A ] __x3A__transform
- input ${graph.graph-to-analyze-evaluated.xml}
-
- output ${p5dg.schema.generate.xml}
-
- </echo>
-
- <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>
-
- <antcall target="p5ant.safety.say_and_open_file.drop_overflow">
- <param name="local.p5ant.safety.limit.file.size__x3A__open_file" value="20"/>
- <param name="local.p5ant.safety.limit.file.size__x3A__open_file.units" value="M"/>
- <param name="local.p5ant.safety.filename" value="${p5dg.schema.generate.xml}"/>
- </antcall>
- </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>
|