Prechádzať zdrojové kódy

todo prepare func for generating p5 autom submodules

arkadiusz binder 5 rokov pred
rodič
commit
11b9c06c03

+ 0 - 43
SE/schema/WPS_Functions/ant/temp/create_new_WPS_Function.PRODUCT1751316566.xml

@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project basedir="../../." default="PRODUCT" name="p5fi.PRODUCT" xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd">
-  <description>p5suis:say Created function folders_interface with prefix p5fi by p5ant module</description>
-  <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml" />
-  <condition property="p5fi.PRODUCT.ifdef.parent" taskname="p5fi.parent.PRODUCT.ifdef">
-    <isset property="WPS_Functions.PRODUCT.name" />
-  </condition>
-  <property name="p5fi.PRODUCT.name" value="${WPS_Functions.PRODUCT.name}.folders_interface" />
-  <property name="p5fi.PRODUCT.vendor-domain" value="${WPS_Functions.PRODUCT.name}.p5fi" />
-  <property name="p5fi.basedir" value="${WPS_Functions.basedir}/folders_interface" />
-  <property name="p5fi.build.xml" value="${p5fi.basedir}/build_p5fi.xml" />
-  <property name="p5fi.repository" value="${WPS_Functions.repository}/folders_interface" />
-  <property name="p5fi.install" value="${p5fi.basedir}/install" />
-  <property location="${WPS_Functions.temp}/folders_interface" name="p5fi.temp" />
-  <property location="${p5fi.basedir}/p5fi.xsl" name="p5fi.xsl" />
-  <property location="${p5fi.basedir}/p5fi.xsd" name="p5fi.xsd" />
-  <property location="${p5fi.basedir}/p5fi.include.structure.xml" name="p5fi.include.structure.xml" />
-  <property location="${p5fi.basedir}/p5fi.include.xsl.p5xsls.xml" name="p5fi.include.xsl.p5xsls.xml" />
-  <property location="${p5fi.repository}/install_example.file" name="p5fi.install_example" />
-  <target depends="basedir,p5xsls.xml" description="to create basedir, includes and install" name="PRODUCT" />
-  <target description="to create local dirs" name="basedir">
-    <propertyset id="p5fi.local.properties">
-      <propertyref prefix="p5fi" />
-      <mapper from="p5fi.*" to="local.*" type="glob" />
-    </propertyset>
-    <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
-      <propertyset refid="p5fi.local.properties" />
-    </antcall>
-  </target>
-  <target description="To delete all temp and repository" name="clean">
-    <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
-      <propertyset refid="p5fi.local.properties" />
-    </antcall>
-  </target>
-  <target description="To delete all temp and repository" name="clean.temp">
-    <antcall inheritall="false" target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
-      <propertyset refid="p5fi.local.properties" />
-    </antcall>
-  </target>
-  <target name="parent.PRODUCT.ifdef" unless="p5fi.WPS_Functions.PRODUCT.ifdef.parent">
-    <fail>There is not set correct parent PRODUCT from expected file=&quot;../build.WPS_Functions.PRODUCT.xml&quot;</fail>
-  </target>
-</project>

+ 33 - 0
SE/schema/WPS_Functions/automation_driven/automation_driven.xsd

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           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:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+           xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
+           xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
+           xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+           xmlns:automation_driven="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd"
+           xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           vc:minVersion="1.1"
+           targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd">
+   <xs:import schemaLocation="../../Types/system_cache__appinfo/PRODUCT.xsd"
+              namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"/>
+   <xs:element name="PRODUCT">
+      <xs:complexType>
+         <xs:complexContent>
+            <xs:extension base="system_cache__appinfo:PRODUCT">
+               <xs:sequence>
+                  <xs:element name="SYSTEM" type="system_cache__appinfo:SYSTEM"/>
+                  <xs:element name="GLOBALS" type="system_cache__appinfo:GLOBALS"/>
+                  <xs:element name="INSTALL" type="system_cache__appinfo:INSTALL"/>
+               </xs:sequence>
+            </xs:extension>
+         </xs:complexContent>
+      </xs:complexType>
+   </xs:element>
+   <xs:group name="PRODUCT">
+      <xs:sequence>
+         <xs:element ref="automation_driven:PRODUCT"/>
+      </xs:sequence>
+   </xs:group>
+</xs:schema>

+ 13 - 0
SE/schema/WPS_Functions/automation_driven/automation_driven.xsl

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+                xmlns:xs="http://www.w3.org/2001/XMLSchema"
+                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:automation_driven="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                exclude-result-prefixes="xs automation_driven"
+                version="2.0">
+   <xsl:output indent="yes"/>
+   <xsl:strip-space elements="*"/>
+   <xsl:param name="automation_driven:basedir"/>
+</xsl:stylesheet>

+ 18 - 0
SE/schema/WPS_Functions/automation_driven/build.automation_driven.INSTALL.xml

@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." default="INSTALL" name="automation_driven.INSTALL">
+  <include file="build.automation_driven.PRODUCT.xml" />
+  <include as="git" file="build.automation_driven.INSTALL.git.xml" optional="yes" />
+  <include as="from_url" file="build.automation_driven.INSTALL.from_url.xml" optional="yes" />
+  <property location="${automation_driven.install}/install_example.file" name="automation_driven.INSTALL.install_example" />
+  <condition property="automation_driven.INSTALL.install_example.ifdef" taskname="INSTALL.install_example">
+    <not>
+      <available file="${automation_driven.repository}/install_example.file" />
+    </not>
+  </condition>
+  <extension-point if="automation_driven.git.url" name="git" />
+  <extension-point if="automation_driven.from_url.url" name="from_url" />
+  <target depends="from_url,git,INSTALL.install_example" name="INSTALL" />
+  <target if="automation_driven.INSTALL.install_example.ifdef" name="INSTALL.install_example">
+    <copy file="${automation_driven.INSTALL.install_example}" tofile="${automation_driven.install_example}" />
+  </target>
+</project>

+ 87 - 0
SE/schema/WPS_Functions/automation_driven/build.automation_driven.PRODUCT.xml

@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:automation_driven="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../."
+         default="PRODUCT"
+         name="automation_driven.PRODUCT">
+   <description>p5suis:say Created function automation_driven with prefix automation_driven by p5ant module</description>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <condition property="automation_driven.PRODUCT.ifdef.parent"
+              taskname="automation_driven.parent.PRODUCT.ifdef">
+      <isset property="WPS_Functions.PRODUCT.name"/>
+   </condition>
+   <property name="automation_driven.PRODUCT.name"
+             value="${WPS_Functions.PRODUCT.name}.automation_driven"/>
+   <property name="automation_driven.PRODUCT.vendor-domain"
+             value="${WPS_Functions.PRODUCT.name}.automation_driven"/>
+   <property name="automation_driven.basedir"
+             value="${WPS_Functions.basedir}/automation_driven"/>
+   <property name="automation_driven.build.xml"
+             value="${automation_driven.basedir}/build_automation_driven.xml"/>
+   <property name="automation_driven.repository"
+             value="${WPS_Functions.repository}/automation_driven"/>
+   <property name="automation_driven.install"
+             value="${automation_driven.basedir}/install"/>
+   <property name="automation_driven.temp"
+             location="${WPS_Functions.temp}/automation_driven"/>
+   <property name="automation_driven.xsl"
+             location="${automation_driven.basedir}/automation_driven.xsl"/>
+   <property name="automation_driven.xsd"
+             location="${automation_driven.basedir}/automation_driven.xsd"/>
+   <property name="automation_driven.include.structure.xml"
+             location="${automation_driven.basedir}/automation_driven.include.structure.xml"/>
+   <property name="automation_driven.include.xsl.p5xsls.xml"
+             location="${automation_driven.basedir}/automation_driven.include.xsl.p5xsls.xml"/>
+   <property name="automation_driven.install_example"
+             location="${automation_driven.repository}/install_example.file"/>
+   <property name="automation_driven.git"
+             location="${automation_driven.repository}/automation_driven.git"/>
+   <property name="automation_driven.from_url"
+             location="${automation_driven.repository}/automation_driven.from_url"/>
+   <property name="automation_driven.module"
+             location="${automation_driven.repository}/automation_driven.module"/>
+   <target name="PRODUCT"
+           depends="basedir,p5xsls.xml"
+           description="to create basedir, includes and install"/>
+   <target name="basedir" description="to create local dirs">
+      <propertyset id="automation_driven.local.properties">
+         <propertyref prefix="automation_driven"/>
+         <mapper from="automation_driven.*" to="local.*" type="glob"/>
+      </propertyset>
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
+         <propertyset refid="automation_driven.local.properties"/>
+      </antcall>
+   </target>
+   <target name="clean" description="To delete all temp and repository">
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
+         <propertyset refid="automation_driven.local.properties"/>
+      </antcall>
+   </target>
+   <target name="clean.temp" description="To delete all temp and repository">
+      <antcall inheritall="false"
+               target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
+         <propertyset refid="automation_driven.local.properties"/>
+      </antcall>
+   </target>
+   <target name="parent.PRODUCT.ifdef"
+           unless="automation_driven.WPS_Functions.PRODUCT.ifdef.parent">
+      <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
+   </target>
+   <target name="p5xsls.xml" depends="basedir">
+      <description>
+                    TODO to be fixed by xslt to allow dynamic create of multi include xsl templates
+                </description>
+      <echoxml namespacepolicy="elementsOnly"
+               file="${automation_driven.include.xsl.p5xsls.xml}">
+         <stylesheet_buildlist xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
+            <namespaces.list>
+               <namespaces.list.namespace prefix="automation_driven"
+                                          namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd"/>
+            </namespaces.list>
+            <include.list>
+               <include.list.href href="/Users/a.binder/Documents/se/SE/schema/WPS_Functions/ant/p5ant.xsl"/>
+            </include.list>
+         </stylesheet_buildlist>
+      </echoxml>
+   </target>
+</project>

+ 7 - 0
SE/schema/WPS_Functions/automation_driven/build.automation_driven.SYSTEM.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../" name="automation_driven.SYSTEM">
+  <include file="../build.WPS_Functions.SYSTEM.xml" optional="true" />
+  <include as="PRODUCT" file="build.automation_driven.PRODUCT.xml" optional="true" />
+  <property location="${p5build_SE.SYSTEM.StandardOutPath}/automation_driven.log" name="automation_driven.SYSTEM.StandardOutPath" />
+  <property location="${p5build_SE.SYSTEM.StandardErrorPath}/automation_driven.log" name="automation_driven.SYSTEM.StandardErrorPath" />
+</project>

+ 41 - 0
SE/schema/WPS_Functions/automation_driven/build_automation_driven.xml

@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:automation_driven="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd"
+         basedir="../../."
+         default="default"
+         name="automation_driven">
+   <include as="PRODUCT" file="build.automation_driven.PRODUCT.xml"/>
+   <include as="SYSTEM" file="build.automation_driven.SYSTEM.xml"/>
+   <include as="INSTALL" file="build.automation_driven.INSTALL.xml"/>
+   <include as="${local.p5ant.WPS_Functions.PRODUCT.module.input}"
+            file="build.automation_driven.${local.p5ant.WPS_Functions.PRODUCT.module.input}.xml"
+            optional="yes"/>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
+   <extension-point name="default.default" depends="default"/>
+   <extension-point name="default" depends="PRODUCT.PRODUCT,INSTALL.INSTALL"/>
+   <target name="xsl-test"
+           description="test usage of default xslt template for module">
+      <xslt basedir="${automation_driven.basedir}"
+            destdir="${automation_driven.temp}"
+            force="true"
+            in="${automation_driven.INSTALL.install_example}"
+            out="${automation_driven.temp}/INSTALL.install_example.xsl-test.xml"
+            style="${automation_driven.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/automation_driven/automation_driven.xsd}INSTALL.install_example.xsl-test.xml"/>
+            <attribute name="http://saxon.sf.net/feature/dtd-validation-recoverable"
+                       value="true"/>
+         </factory>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd}basedir"
+                expression="${automation_driven.basedir}"/>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd}repository"
+                expression="${automation_driven.repository}"/>
+         <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/automation_driven/automation_driven.xsd}temp"
+                expression="${automation_driven.temp}"/>
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <xmlcatalog refid="dita-ot.dtd.catalog"/>
+      </xslt>
+   </target>
+</project>

+ 6 - 0
SE/schema/WPS_Functions/automation_driven/install/install_example.file

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<example>
+  <description>This is {p5ant.WPS_Functions.INSTALL.install_example} to be 
+                    copied to {p5ant.WPS_Functions.install_example} = /Users/a.binder/Documents/se/SE/schema/WPS_Functions/automation_driven/repository/install_example.file
+                    by {p5ant.WPS_Functions.INSTALL.xml} = /Users/a.binder/Documents/se/SE/schema/WPS_Functions/automation_driven/build.automation_driven.INSTALL.xml target INSTALL</description>
+</example>