build.xml 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project basedir="." name="xmlschema_procesy5" default="sync_p5_tr_map_with_se"> <!-- sync_p5_tr_map_with_se new-schema-with-ID-to-move-and-rename-to-xsd generate_schema_with_id build_detect_objects_parent_relations build_detect_resource_type build_tr_map element_complexType.xml generate_schema_with_id sync_p5_tr_map_with_se -->
  3. <description>This file is Business Objects Transformations Component described in procesy5 documentation </description>
  4. <!--<description>Do przetwarzania wygenerowanych schematow itp i integracji z systemem</description>-->
  5. <!-- licence values -->
  6. <property name="TargetNamespaceBindings" value="https://biuro.biall-net.pl"/> <!-- default https://biuro.biall-net.pl for API working in this domain -->
  7. <property name="TargetNamespaceBindingsApi" value="${TargetNamespaceBindings}/wfs"/>
  8. <property name="TargetNamespaceBindingsApiUrl" value="${TargetNamespaceBindingsApi}/wfs-data.php"/>
  9. <property name="targetNamespace_DEFAULTS_prefix" value="default_db"/>
  10. <property name="targetNamespace_DEFAULTS_prefix_objects" value="default_objects"/>
  11. <property name="targetNamespace_DEFAULTS" value="${TargetNamespaceBindings}/xmlschema_procesy5/${targetNamespace_DEFAULTS_prefix}"/> <!-- namespace do lokalnego bindowania do default_db http://biuro.biall-net.pl/xmlschema_procesy5/default_db -->
  12. <property name="config_dir" value="${basedir}/config"/>
  13. <property name="NamespaceBinding.xml" value="${config_dir}/NamespaceBinding.xml"/> <!-- file with binding informations -->
  14. <property name="public_html" location="${basedir}"/> <!-- do wstawienia schematos -->
  15. <!-- modules WPS_Functions -->
  16. <property name="WPS_Functions" location="${basedir}/WPS_Functions"/>
  17. <property name="build_WPS_Functions.xml" location="${WPS_Functions}/build_WPS_Functions.xml"/> <!-- call it to get properties -->
  18. <property name="build_WPS_Functions.xml.properties" location="${build_WPS_Functions.xml}.properties"/>
  19. <!-- went to WPS_Functions/build_WPS_Functions -->
  20. <property name="ant-launcher.jar" location="/opt/local/share/java/apache-ant/lib/ant-launcher.jar"/>
  21. <property name="Shared_Git_Root" location="../../../"/> <!-- do ustalenia gdzie trzymamy wszystkie repozytoria na serwerze -->
  22. <property name="remote" location="${Shared_Git_Root}/se/SE/schema"/>
  23. <property name="table.local" location="${public_html}/table"/>
  24. <property name="table.remote" location="${remote}/table"/>
  25. <property name="default_db.instance.xml" value="${basedir}/default_db.instance.xml"><!--<glossgroup id="glossgroup_ezt_5sz_gz">--></property>
  26. <property name="default_db.instance.xml.symlink" value="${basedir}/default_db.instance.xml.symlink"/>
  27. <property name="transformed.local" location="${default_db.instance.xml}/transformed"/> <!-- dir for some raport outputs -->
  28. <property name="procesy5_system_schema.xml" value="${transformed.local}/procesy5_system_schema.xml"/>
  29. <property name="vrtfNamespaces.xml" value="${transformed.local}/vrtfNamespaces.xml"/>
  30. <property name="element_complexType.xml" value="${transformed.local}/element_complexType.xml"/><!-- for build flat schema and tr_map -->
  31. <property name="build_complexType.local" location="${default_db.instance.xml}/build_complexType"/>
  32. <property name="build_complexType.remote" location="${remote}/default_db.instance.xml/build_complexType"/>
  33. <property name="p5_tr_map.local" location="${default_db.instance.xml}/p5_tr_map"/>
  34. <property name="p5_tr_map.remote" location="${remote}/default_db.instance.xml/p5_tr_map"/>
  35. <property name="detect_resource_type.local" location="${default_db.instance.xml}/detect_resource_type"/>
  36. <property name="detect_resource_type.remote" location="${remote}/default_db.instance.xml/detect_resource_type"/>
  37. <property name="simpleSchema.local" location="${default_db.instance.xml}/simpleSchema"/>
  38. <property name="simpleSchema.remote" location="${remote}/default_db.instance.xml/simpleSchema"/>
  39. <!-- module cache -->
  40. <property name="build_properties" location="${public_html}/build_properties" />
  41. <property name="new-schema-with-ID-to-move-and-rename-to-xsd" location="${transformed.local}/new-schema-with-ID-to-move-and-rename-to-xsd"/>
  42. <property name="empty.xml" value="empty.xml"/>
  43. <!-- templates -->
  44. <property name="default_db_xml_cache.public" location="${public_html}/default_db_xml_cache.public"/>
  45. <property name="default_db_xml_cache" value="default_db_xml_cache"/><!-- xsl Business Objects Transformers -->
  46. <property name="system_cache__resources_tree_generate_xsl_required_occurs_raport" value="${default_db_xml_cache}/system_cache__resources_tree_generate_xsl_required_occurs_raport"/>
  47. <property name="parse_schema_to_generate_id.xsl" value="${system_cache__resources_tree_generate_xsl_required_occurs_raport}/parse_schema_to_generate_id.xsl" />
  48. <property name="parse_schema_to_generate_id_raport.xml" value="${transformed.local}/new-schema-with-ID-to-move-and-rename-to-xsd.xml"/>
  49. <property name="get_all_xsd.xsl" value="${default_db_xml_cache.public}/get_all_xsd.xsl"/>
  50. <property name="build_element_complexType.xml" value="${transformed.local}/build_element_complexType.xml"/> <!-- ant build to generate elements flat and p5_tr_map -->
  51. <property name="build_complexType.xsl" value="${default_db_xml_cache}/build_complexType.xsl"/>
  52. <property name="build_complexType_raport.xml" value="${transformed.local}/build_complexType_raport.xml"/>
  53. <property name="build_tr_map_raport.xml" value="${transformed.local}/build_tr_map_raport.xml"/>
  54. <property name="p5_tr_map.xsl" value="${default_db_xml_cache}/p5_tr_map.xsl"/>
  55. <property name="detect_resource_type.xsl" value="${default_db_xml_cache}/system_cache__resources_tree_generate_xsl_required_occurs_raport/detect_resource_type.xsl"/>
  56. <property name="detect_resource_type.xml" value="${transformed.local}/detect_resource_type.xml"/> <!-- ${targetNamespace_DEFAULTS_prefix} -->
  57. <property name="detect_objects_parent_relations.xsl" value="${default_db_xml_cache}/system_cache__resources_tree_generate_xsl_required_occurs_raport/detect_objects_parent_relations.xsl"/>
  58. <property name="detect_objects_parent_relations.xml" value="${transformed.local}/detect_objects_parent_relations.xml"/>
  59. <property name="main_build_recurse_ant.dita_with_id.xsl" value="${default_db_xml_cache.public}/main_build_recurse_ant.dita_with_id.xsl"/>
  60. <property name="main_build_recurse_ant.dita_with_id_raport.xml" value="${transformed.local}/main_build_recurse_ant.dita_with_id_raport.xml"/><!-- raport only for simpleSchema -->
  61. <property name="default_db.xml" value="${public_html}/default_db/default_db.xml"/>
  62. <property name="default_db.xml.get_url" value="${TargetNamespaceBindings}/SE/version-git/api.php/xml/xsd/default_db"/> <!-- TODO to be set -->
  63. <property name="TargetNamespaceBindings.xsl" value="${default_db_xml_cache.public}/system_cache__appinfo/TargetNamespaceBindings.xsl"/>
  64. <!-- important xsl templates another -->
  65. <property name="build_ant_universal_by_xsl_match.xsl" value="${default_db_xml_cache.public}/build_ant_universal_by_xsl_match.xsl"/>
  66. <!-- this is current dowloaded from API GET_ALL_XSD scehema of database to rebuild_structures and analysis etc...
  67. <xsl:variable name="URL" select="concat($api_url,'/dev-pl/se-feature-api/api.php/xml/xsd/',$db_name_prefix)"/>
  68. -->
  69. <!-- for WPS_Functions/default_db/CRM_PROCES_tree informations -->
  70. <!--<FeatureType xmlns:default_objects="https://biuro.biall-net.pl/wfs/default_objects">
  71. <Name>SystemProcess</Name>
  72. <Title>SystemProcess</Title>
  73. <Abstract>SystemProcess</Abstract>
  74. <Keywords>SystemProcess</Keywords>
  75. <SRS>EPSG:4326</SRS>
  76. </FeatureType>-->
  77. <property name="default_objects:SystemProces" value="default_objects:SystemProces"/> <!-- to retrieve SystemProces -->
  78. <!--<target name="detect_objects_parent_relations_clean">
  79. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  80. </target>-->
  81. <target name="save_build_properties" >
  82. <ant antfile="${build_WPS_Functions.xml}" inheritall="yes"/>
  83. <echoproperties destfile="${build_properties}" />
  84. </target>
  85. <!--<target name="read_build_properties_check">
  86. <!-\-<condition property="read_build_properties_check" taskname="save_build_properties" >
  87. <available file="${build_properties}"/>
  88. </condition>-\->
  89. <antcall target="save_build_properties"/>
  90. <loadproperties srcfile="${build_properties}"/>
  91. </target>-->
  92. <target name="read_build_properties">
  93. <loadproperties srcfile="${build_properties}"/>
  94. </target>
  95. <target name="procesy5_system_schema.xml_if_not_exists_check" description="to be called from procesy5_system_schema.xml_if_not_exists">
  96. <echo>Debug test relative property object_modeling_basedir=${object_modeling_basedir} </echo>
  97. <condition property="procesy5_system_schema.xml_if_not_exists_check" taskname="procesy5_system_schema.xml_if_not_exists">
  98. <available file="${procesy5_system_schema.xml}"/>
  99. </condition>
  100. </target>
  101. <target name="procesy5_system_schema.xml_if_not_exists" depends="procesy5_system_schema.xml_if_not_exists_check" unless="${procesy5_system_schema.xml_if_not_exists_check}" description="For external ant calls to be sure that xmlshema is generated if not - do it">
  102. <echo>procesy5_system_schema.xml_if_not_exists we do it by antcall procesy5_system_schema.xml </echo>
  103. <antcall target="procesy5_system_schema.xml"/>
  104. </target>
  105. <target name="procesy5_system_schema.xml" description="Generate procesy5_system_schema.xml and vrtfNamespaces.xml which can be not correct">
  106. <mkdir dir="${default_db.instance.xml}"/>
  107. <mkdir dir="${transformed.local}"/>
  108. <delete file="${procesy5_system_schema.xml}" failonerror="false"/>
  109. <echo> run ${get_all_xsd.xsl} with param procesy5_system_schema_collection_dir=${public_html}; </echo>
  110. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  111. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${empty.xml}" destdir="./" out="${procesy5_system_schema.xml}" >
  112. <factory name="net.sf.saxon.TransformerFactoryImpl">
  113. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  114. <attribute name="http://saxon.sf.net/feature/initialTemplate" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}get_all_xsd"/>
  115. </factory>
  116. <param name="procesy5_system_schema_collection_dir" expression="${public_html}"/>
  117. <param name="cache" expression="refresh"/>
  118. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  119. </xslt>
  120. <delete file="${vrtfNamespaces.xml}"/>
  121. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${vrtfNamespaces.xml}" >
  122. <factory name="net.sf.saxon.TransformerFactoryImpl">
  123. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  124. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}vrtfNamespaces"/>
  125. </factory>
  126. <param name="procesy5_system_schema_collection_dir" expression="${public_html}"/>
  127. <param name="cache" expression="refresh"/>
  128. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  129. </xslt>
  130. </target>
  131. <target name="procesy5_system_schema.xml_complete" description="Generate procesy5_system_schema.xml and vrtfNamespaces.xml which can be not correct">
  132. <mkdir dir="${default_db.instance.xml}"/>
  133. <mkdir dir="${transformed.local}"/>
  134. <delete file="${procesy5_system_schema.xml}" failonerror="false"/>
  135. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  136. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  137. <echo> run ${get_all_xsd.xsl} with param procesy5_system_schema_collection_dir=${public_html}; </echo>
  138. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${empty.xml}" destdir="./" out="${procesy5_system_schema.xml}" >
  139. <factory name="net.sf.saxon.TransformerFactoryImpl">
  140. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  141. <attribute name="http://saxon.sf.net/feature/initialTemplate" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}get_all_xsd"/>
  142. </factory>
  143. <param name="procesy5_system_schema_collection_dir" expression="${public_html}"/>
  144. <param name="cache" expression="refresh"/>
  145. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  146. </xslt>
  147. <delete file="${vrtfNamespaces.xml}"/>
  148. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${vrtfNamespaces.xml}" >
  149. <factory name="net.sf.saxon.TransformerFactoryImpl">
  150. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  151. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}vrtfNamespaces"/>
  152. </factory>
  153. <param name="procesy5_system_schema_collection_dir" expression="${public_html}"/>
  154. <param name="cache" expression="refresh"/>
  155. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  156. </xslt>
  157. </target>
  158. <target name="generate_schema_with_id" depends="procesy5_system_schema.xml" description="first we generate schema to check if all have correct ID">
  159. <!-- schema @id fixing -->
  160. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  161. <delete file="${parse_schema_to_generate_id_raport.xml}"/>
  162. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  163. <xslt basedir="./" style="${parse_schema_to_generate_id.xsl}" in="${empty.xml}" destdir="./" out="${parse_schema_to_generate_id_raport.xml}" >
  164. <factory name="net.sf.saxon.TransformerFactoryImpl">
  165. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  166. <attribute name="http://saxon.sf.net/feature/initialTemplate" value="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport}parse_schema_to_generate_id"/>
  167. </factory>
  168. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  169. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  170. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
  171. <param name="new-schema-with-ID-to-move-and-rename-to-xsd" expression="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  172. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  173. </xslt>
  174. </target>
  175. <target name="NamespaceBinding.xml" description="To generate config for NamespaceBinding.xml for use in SimpleSchema for related features etc - correctly use namespace prefix and url for API requests">
  176. <xslt basedir="./" style="${TargetNamespaceBindings.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${NamespaceBinding.xml}.temp.xml" force="true">
  177. <factory name="net.sf.saxon.TransformerFactoryImpl">
  178. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  179. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}NamespaceBinding.xml"/>
  180. </factory>
  181. <param name="targetNamespace_DEFAULTS_prefix" expression="${targetNamespace_DEFAULTS_prefix}"/>
  182. <param name="targetNamespace_DEFAULTS_prefix_objects" expression="${targetNamespace_DEFAULTS_prefix_objects}"/>
  183. <param name="TargetNamespaceBindingsApiUrl" expression="${TargetNamespaceBindingsApiUrl}"/>
  184. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  185. </xslt>
  186. </target>
  187. <target name="element_complexType.xml" depends="procesy5_system_schema.xml_complete,NamespaceBinding.xml" description=" generate list of elements and Complextype to generate flat and tr_map">
  188. <delete file="${element_complexType.xml}"/>
  189. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${element_complexType.xml}" >
  190. <factory name="net.sf.saxon.TransformerFactoryImpl">
  191. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  192. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}element_complexType"/>
  193. </factory>
  194. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  195. </xslt>
  196. </target>
  197. <target name="build_complexType" depends="element_complexType.xml" description="we generate all complexType for all known elements and complexType in schema">
  198. <delete dir="${build_complexType.local}"/>
  199. <xslt basedir="./" style="${build_complexType.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_complexType_raport.xml}" >
  200. <factory name="net.sf.saxon.TransformerFactoryImpl">
  201. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  202. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}element_complexType"/>
  203. </factory>
  204. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  205. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  206. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  207. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  208. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  209. </xslt>
  210. </target>
  211. <target name="build_tr_map" depends="build_complexType" description="we generate all tr_map for all known elements and complexType in schema">
  212. <delete dir="${p5_tr_map.local}"/>
  213. <xslt basedir="./" style="${p5_tr_map.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_tr_map_raport.xml}" >
  214. <factory name="net.sf.saxon.TransformerFactoryImpl">
  215. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  216. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd}element_complexType_tr_map"/>
  217. </factory>
  218. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  219. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  220. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  221. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  222. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  223. </xslt>
  224. </target>
  225. <!-- depends="build_tr_map" -->
  226. <target name="build_detect_resource_type" depends="build_tr_map" description="we generate detect_resource_type for use it for generate detect_objects_parent_relations">
  227. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  228. <delete file="${detect_resource_type.xml}"/>
  229. <xslt basedir="./" style="${detect_resource_type.xsl}" in="${empty.xml}" destdir="./" out="${detect_resource_type.xml}" >
  230. <factory name="net.sf.saxon.TransformerFactoryImpl">
  231. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  232. <attribute name="http://saxon.sf.net/feature/initialTemplate" value="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport}detect_resource_type"/>
  233. </factory>
  234. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  235. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  236. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  237. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  238. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
  239. <param name="NamespaceBinding.xml" expression="${NamespaceBinding.xml}"/> <!-- todo for better handle DefaultObjects etc -->
  240. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  241. </xslt>
  242. <!-- file:/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/transformed/resources_tree_required_occurs_raport/detect_resource_type-\-http__x3A____x2F____x2F__biuro.biall__x2D__net.pl__x2F__xmlschema_procesy5__x2F__default_db.xml-->
  243. </target>
  244. <!-- depends="build_detect_resource_type" -->
  245. <target name="build_detect_objects_parent_relations" depends="build_detect_resource_type" description="we generate detect resources parent relations ">
  246. <delete dir="${detect_resource_type.local}"/>
  247. <delete file="${detect_objects_parent_relations.xml}"/>
  248. <xslt basedir="./" style="${detect_objects_parent_relations.xsl}" in="${detect_resource_type.xml}" destdir="./" out="${detect_objects_parent_relations.xml}" >
  249. <factory name="net.sf.saxon.TransformerFactoryImpl">
  250. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  251. <!--<attribute name="http://saxon.sf.net/feature/initialTemplate" value="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport}detect_resource_type"/>-->
  252. </factory>
  253. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  254. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  255. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  256. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  257. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
  258. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  259. </xslt>
  260. <!--file:/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/transformed/resources_tree_required_occurs_raport/detect_objects_parent_relations-\-http__x3A____x2F____x2F__biuro.biall__x2D__net.pl__x2F__xmlschema_procesy5__x2F__default_db.xml-->
  261. </target>
  262. <!-- depends="build_detect_objects_parent_relations" -->
  263. <target name="build_simpleSchema_for_recurse_ant" depends="build_detect_objects_parent_relations" description="we generate by using main_build_recurse_ant.dita_with_id.xsl simple transport map for use in interfaces and ant xml output">
  264. <delete dir="${simpleSchema.local}"/>
  265. <xslt basedir="./" style="${main_build_recurse_ant.dita_with_id.xsl}" in="${detect_objects_parent_relations.xml}" destdir="./" out="${main_build_recurse_ant.dita_with_id_raport.xml}" >
  266. <factory name="net.sf.saxon.TransformerFactoryImpl">
  267. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  268. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport}build_simpleSchema_for_recurse_ant"/>
  269. </factory>
  270. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  271. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  272. <!--<param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  273. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  274. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>-->
  275. <param name="namespace_prefix" expression="${targetNamespace_DEFAULTS_prefix}"/>
  276. <param name="detect_resource_type_dir" expression="${detect_resource_type.local}"/>
  277. <param name="build_complexType_dir" expression="${build_complexType.local}"/>
  278. <param name="simpleSchema_dir" expression="${simpleSchema.local}"/>
  279. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  280. </xslt>
  281. </target>
  282. <!--<target name="generate_ant_data_business_modules" description="generate modules specified in "/>
  283. <target name="read_db_structure" description="we read db structure to than analyze it against missing or not correct fields/tables/indexes "/>
  284. <target name="modify_uncorrect_structure" description="we add missing structure fields/tables/indexes "/>
  285. <target name="add_missing_structure" description="we add missing structure fields/tables/indexes "/>
  286. <target name="read_installed_business_objects" description="we read current installed business_objects to verify to update them (version)"/>
  287. <target name="update_installed_business_objects" description="we update current installed business_objects (version) and applying transaction apply template if some data need to be updated"/>
  288. <target name="install_business_objects" description="we install business_objects (version) and applying transaction apply template if some data need to be updated - rebuild references or instances "/>
  289. -->
  290. <target name="detect_objects_parent_relations_clean" description="piewsze czyszczenie - pewnie nie ma @id">
  291. <!--<exec command="make">
  292. <arg line="clean"/>
  293. </exec>-->
  294. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  295. <delete dir="${detect_resource_type.local}"/>
  296. <delete dir="${transformed.local}"/>
  297. <delete dir="${build_complexType.local}"/>
  298. <delete dir="${p5_tr_map.local}"/>
  299. <delete dir="${simpleSchema.local}"/>
  300. </target>
  301. <!--<target name="detect_objects_parent_relations" depends="detect_objects_parent_relations_clean" description="pierwsze szukanie relacji - moga nie miec @id">
  302. <!-\-<exec command="make" failifexecutionfails="no">
  303. <arg line="detect_objects_parent_relations"/>
  304. </exec>-\->
  305. <antcall target="build_complexType"/>
  306. <antcall target="build_tr_map"/>
  307. <antcall target="build_detect_resource_type"/>
  308. </target>-->
  309. <target depends="generate_schema_with_id" name="new-schema-with-ID-to-move-and-rename-to-xsd_test">
  310. <condition taskname="new-schema-with-ID-to-move-and-rename-to-xsd" property="new-schema-with-ID-to-move-and-rename-to-xsd_exists">
  311. <available file="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  312. </condition>
  313. </target>
  314. <target name="new-schema-with-ID-to-move-and-rename-to-xsd" depends="new-schema-with-ID-to-move-and-rename-to-xsd_test" if="${new-schema-with-ID-to-move-and-rename-to-xsd_exists}">
  315. <copy todir="${public_html}">
  316. <fileset dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  317. </copy>
  318. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  319. </target>
  320. <!--<target name="detect_objects_parent_relations_clean_complete" if="${new-schema-with-ID-to-move-and-rename-to-xsd_complete_exists}" description="drugi raz czyscimy na czysto - z @id">
  321. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  322. <delete dir="${detect_resource_type.local}"/>
  323. <delete dir="${transformed.local}"/>
  324. <delete dir="${build_complexType.local}"/>
  325. <delete dir="${p5_tr_map.local}"/>
  326. <delete dir="${simpleSchema.local}"/>
  327. <!-\-<exec command="make">
  328. <arg line="clean"/>
  329. </exec>-\->
  330. </target>-->
  331. <!--<target name="new-schema-with-ID-to-move-and-rename-to-xsd_test_complete">
  332. <condition taskname="detect_objects_parent_relations_complete" property="new-schema-with-ID-to-move-and-rename-to-xsd_complete_exists">
  333. <available file="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  334. </condition>
  335. </target>-->
  336. <!--<target name="detect_objects_parent_relations_complete" if="${new-schema-with-ID-to-move-and-rename-to-xsd_complete_exists}" depends="new-schema-with-ID-to-move-and-rename-to-xsd_test_complete,detect_objects_parent_relations_clean_complete" description=" tutaj juz sa skopiowane z @id">
  337. <!-\-<exec command="make">
  338. <arg line="detect_objects_parent_relations"/>
  339. </exec>-\->
  340. <!-\-<antcall target="build_complexType"/>
  341. <antcall target="build_tr_map"/>
  342. <antcall target="build_detect_resource_type"/>-\->
  343. <!-\-<antcall target="build_simpleSchema_for_recurse_ant"/> <!-\\- to wystarczy - wyzwala sie kolejno po dependency -\\->-\->
  344. </target>-->
  345. <target name="sync_p5_tr_map_with_se" depends="new-schema-with-ID-to-move-and-rename-to-xsd,build_simpleSchema_for_recurse_ant" description="syncrhonizacja wygenerowanych map z default_db.instance/p5_tr_map do SE/schema/public_instance/p5_tr_map">
  346. <delete dir="${p5_tr_map.remote}" failonerror="no"/>
  347. <!--<copydir src="${p5_tr_map.local}" dest="${p5_tr_map.remote}" />-->
  348. <mkdir dir="${p5_tr_map.remote}"/>
  349. <copy todir="${p5_tr_map.remote}">
  350. <fileset dir="${p5_tr_map.local}"/>
  351. </copy>
  352. <delete dir="${detect_resource_type.remote}" failonerror="no"/>
  353. <copy todir="${detect_resource_type.remote}">
  354. <fileset dir="${detect_resource_type.local}"/>
  355. </copy>
  356. <delete dir="${table.remote}" failonerror="no"/>
  357. <copy todir="${table.remote}">
  358. <fileset dir="${table.local}"/>
  359. </copy>
  360. <delete dir="${build_complexType.remote}" failonerror="no"/>
  361. <copy todir="${build_complexType.remote}">
  362. <fileset dir="${build_complexType.local}"/>
  363. </copy>
  364. <delete dir="${simpleSchema.remote}" failonerror="no"/>
  365. <copy todir="${simpleSchema.remote}">
  366. <fileset dir="${simpleSchema.local}"/>
  367. </copy>
  368. </target>
  369. </project>