build.xml 113 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project
  3. xmlns:p5build="http://biuro.biall-net.pl/xmlschema_procesy5/build.xsd"
  4. basedir="." name="p5build" default="sync_p5_tr_map_with_se.refresh"> <!-- 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 -->
  5. <description>This file is Business Objects Transformations Component described in procesy5 documentation </description>
  6. <!--<description>Do przetwarzania wygenerowanych schematow itp i integracji z systemem</description>-->
  7. <include file="build.p5build.GLOBALS.xml"/>
  8. <include file="build.p5build.PRODUCT.xml"/><!--<include file="build_SE_basedir/build.p5build_SE.PRODUCT.name.xml"/>-->
  9. <include file="build_SE_basedir/build.p5build_SE.SYSTEM.xml" as="build_SE.SYSTEM"/>
  10. <include file="build.p5build.SYSTEM.xml"/>
  11. <include file="build.p5build.SYSTEM.transformed.xml" as="SYSTEM.transformed"/>
  12. <include file="WPS_Functions/build.WPS_Functions.PRODUCT.xml" optional="true"/>
  13. <include file="WPS_Functions/system_ui_info_speech/build_system_ui_info_speech.xml" as="p5suis" optional="true"/>
  14. <property name="threadCount" value="3"/>
  15. <property name="debug_level_param" value="0"/>
  16. <!-- licence values are read from build_SE.xml-->
  17. <!--<property name="TargetNamespaceBindings" value="https://biuro.biall-net.pl"/> <!-\- default https://biuro.biall-net.pl for API working in this domain -\->
  18. <property name="TargetNamespaceBindingsApi" value="${TargetNamespaceBindings}/wfs"/>
  19. <property name="TargetNamespaceBindingsApiUrl" value="${TargetNamespaceBindingsApi}/wfs-data.php"/>
  20. <property name="targetNamespace_DEFAULTS_prefix" value="default_db"/>
  21. <property name="targetNamespace_DEFAULTS_prefix_objects" value="default_objects"/>
  22. <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 -\->
  23. <property name="config_dir" value="${basedir}/config"/>
  24. <property name="NamespaceBinding.xml" value="${config_dir}/NamespaceBinding.xml"/>--> <!-- file with binding informations -->
  25. <property name="XMLSchema_prefix" value="xs"/>
  26. <property name="public_html" location="${basedir}"/> <!-- do wstawienia schematos -->
  27. <!-- build_SE.xml - licence variables - to use root variables -->
  28. <property name="build_SE.xml" location="${p5build_SE.build}"/>
  29. <property name="build_SE_basedir" location="${p5build_SE.basedir}"/> <!-- to keep files there some temp etc -->
  30. <property name="build_SE_basedir.temp" location="${p5build_SE.temp}"/>
  31. <property name="build_SE.properties" location="${p5build_SE.properties}"/>
  32. <property name="build_SE.properties.xml" location="${p5build_SE.properties.xml}"/>
  33. <!-- modules WPS_Functions -->
  34. <property name="WPS_Functions" location="${WPS_Functions.basedir}"/>
  35. <property name="build_WPS_Functions.xml" location="${WPS_Functions.build}"/> <!-- call it to get properties -->
  36. <property name="build_WPS_Functions.xml.properties" location="${WPS_Functions.properties}"/>
  37. <!-- went to WPS_Functions/build_WPS_Functions -->
  38. <property name="ant-launcher.jar" location="/opt/local/share/java/apache-ant/lib/ant-launcher.jar"/>
  39. <!--<property name="hxnormalize" value="/opt/local/bin/hxnormalize"/>--> <!-- port install htmlutils-->
  40. <property name="xlsx.xsl" value="${basedir}/default_db_xml_cache.public/xlsx.xsl"/>
  41. <property name="dtd2xsd.pl" location="${basedir}/stuff/dtd2xsd.pl"/> <!-- to convert from dtd to xsd -->
  42. <property name="remote.ant-object" location="${remote}/ant-object"/> <!-- than is default_db.CRM_PROCES/PROCES_INIT/PROCES_INIT.xsd and build.xml (empty) -->
  43. <property name="remote.ant-url_action" location="${remote}/ant-url_action"/>
  44. <property name="remote.default_db.in7_dziennik_koresp" location="${remote.ant-url_action}/default_db.in7_dziennik_koresp"/>
  45. <property name="remote.default_db.bi_audit_energa_rum_kontrahenci_powiazania" location="${remote.ant-url_action}/default_db.bi_audit_energa_rum_kontrahenci_powiazania"/>
  46. <property name="table.local" location="${basedir}/table"/>
  47. <property name="table.remote" location="${remote}/table"/>
  48. <property name="default_db.instance.xml" value="${basedir}/default_db.instance.xml"><!--<glossgroup id="glossgroup_ezt_5sz_gz">--></property>
  49. <property name="default_db.instance.xml.symlink" value="${basedir}/default_db.instance.xml.symlink"/>
  50. <property name="transformed.local" location="${default_db.instance.xml}/transformed"/> <!-- dir for some raport outputs -->
  51. <property name="procesy5_system_schema.xml" value="${transformed.local}/procesy5_system_schema.xml"/>
  52. <property name="procesy5_system_schema.complete" value="${transformed.local}/procesy5_system_schema.complete"/>
  53. <property name="procesy5_system_schema_file" value="${procesy5_system_schema.xml}"/> <!-- alias property used in buildComplexType - to be removed in cleaning/organizing -->
  54. <property name="external_schema" value="/public_html/external_schema"/><!-- ignore schemas to be imported/transformed locally -->
  55. <property name="external_schema_id_namespace_prefix" value="/public_html/external_schema_id_namespace_prefix"/><!-- ingored but to parse schemas to be imported/transformed locally -->
  56. <property name="external_schema_table.path" value="${basedir}/external_schema_table"/><!-- transformed to tables from external_schema_id_namespace_prefix to be set @id TODO use it on recurse_ant - it is now set manually-->
  57. <property name="vrtfNamespaces.xml" value="${transformed.local}/vrtfNamespaces.xml"/>
  58. <property name="vrtfNamespaces_file" value="${vrtfNamespaces.xml}"/>
  59. <property name="element_complexType.xml" value="${transformed.local}/element_complexType.xml"/><!-- for build flat schema and tr_map -->
  60. <property name="build_element_complexType.xml" value="${transformed.local}/build_element_complexType.xml"/> <!-- for build parallel by ant universal xsl -->
  61. <property name="build_element_complexType.xml.complete" value="${build_element_complexType.xml}.complete"/> <!-- to controll if is complete to bypass it -->
  62. <property name="build_tr_map.xml" value="${transformed.local}/build_tr_map.xml"/>
  63. <property name="build_tr_map.xml.complete" value="${transformed.local}/build_tr_map.xml.complete"/>
  64. <property name="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml" value="${transformed.local}/CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml"/><!-- transformed/CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml -->
  65. <property name="CRM_PROCES.get_wfs_recurse_xsl.xml" value="${transformed.local}/CRM_PROCES.get_wfs_recurse_xsl.xml"/>
  66. <property name="build_simpleSchema_for_recurse_ant.single.complete" value="${transformed.local}/build_simpleSchema_for_recurse_ant.single.complete"/>
  67. <property name="system_ui_info_speech" location="${basedir}/WPS_Functions/system_ui_info_speech/build_system_ui_info_speech.xml"/>
  68. <property name="build_complexType.local" location="${default_db.instance.xml}/build_complexType"/>
  69. <property name="build_complexType.remote" location="${remote}/default_db.instance.xml/build_complexType"/>
  70. <property name="p5_tr_map.local" location="${default_db.instance.xml}/p5_tr_map"/>
  71. <property name="p5_tr_map.remote" location="${remote}/default_db.instance.xml/p5_tr_map"/>
  72. <property name="detect_resource_type.local" location="${default_db.instance.xml}/detect_resource_type"/>
  73. <property name="detect_resource_type.remote" location="${remote}/default_db.instance.xml/detect_resource_type"/>
  74. <property name="detect_objects_parent_relations.local" location="${default_db.instance.xml}/detect_objects_parent_relations"/>
  75. <property name="detect_objects_parent_relations.remote" location="${remote}/default_db.instance.xml/detect_objects_parent_relations"/>
  76. <property name="simpleSchema.local" location="${default_db.instance.xml}/simpleSchema"/>
  77. <property name="simpleSchema.remote" location="${remote}/default_db.instance.xml/simpleSchema"/>
  78. <!-- module cache -->
  79. <property name="build_properties" location="${basedir}/.build_properties" />
  80. <property name="build_properties.xml" location="${basedir}/.build_properties.xml" />
  81. <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"/>
  82. <property name="empty.xml" location="${basedir}/empty.xml"/>
  83. <!-- templates -->
  84. <property name="default_db_xml_cache.public" location="${basedir}/default_db_xml_cache.public"/>
  85. <property name="default_db_xml_cache" value="${basedir}/default_db_xml_cache"/><!-- xsl Business Objects Transformers -->
  86. <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"/>
  87. <property name="parse_schema_to_generate_id.xsl" value="${system_cache__resources_tree_generate_xsl_required_occurs_raport}/parse_schema_to_generate_id.xsl" />
  88. <property name="parse_schema_to_generate_id_raport.xml" value="${transformed.local}/new-schema-with-ID-to-move-and-rename-to-xsd.xml"/>
  89. <property name="get_all_xsd.xsl" value="${default_db_xml_cache.public}/get_all_xsd.xsl"/>
  90. <property name="build_element_complexType.xml" value="${transformed.local}/build_element_complexType.xml"/> <!-- ant build to generate elements flat and p5_tr_map -->
  91. <property name="build_detect_resource_type.xml" value="${transformed.local}/build_detect_resource_type.xml"/>
  92. <property name="build_detect_resource_type.complete" value="${transformed.local}/build_detect_resource_type.complete"/>
  93. <property name="build_complexType.xsl" value="${default_db_xml_cache}/build_complexType.xsl"/>
  94. <property name="build_complexType_raport.xml" value="${transformed.local}/build_complexType_raport.xml"/>
  95. <property name="build_tr_map_raport.xml" value="${transformed.local}/build_tr_map_raport.xml"/>
  96. <property name="p5_tr_map.xsl" value="${default_db_xml_cache}/p5_tr_map.xsl"/>
  97. <property name="detect_resource_type.xsl" value="${default_db_xml_cache}/system_cache__resources_tree_generate_xsl_required_occurs_raport/detect_resource_type.xsl"/>
  98. <property name="detect_resource_type.xml" value="${transformed.local}/detect_resource_type.xml"/> <!-- ${targetNamespace_DEFAULTS_prefix} -->
  99. <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"/>
  100. <property name="detect_objects_parent_relations.xml" value="${transformed.local}/detect_objects_parent_relations.xml"/>
  101. <property name="build_detect_objects_parent_relations.xml" value="${transformed.local}/build_detect_objects_parent_relations.xml"/>
  102. <property name="build_detect_objects_parent_relations.complete" value="${transformed.local}/build_detect_objects_parent_relations.complete"/>
  103. <property name="main_build_recurse_ant.dita_with_id.xsl" value="${default_db_xml_cache.public}/main_build_recurse_ant.dita_with_id.xsl"/>
  104. <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 -->
  105. <property name="build_SimpleSchema.xml" value="${transformed.local}/build_SimpleSchema.xml"/>
  106. <!--<property name="build_SimpleSchema.complete" value="${transformed.local}/build_SimpleSchema.complete"/>-->
  107. <property name="build_assertion_from_complexType.xsl" value="${default_db_xml_cache}/build_assertion_from_complexType.xsl"/>
  108. <property name="assertion_from_complexType_generated.xsl" value="${transformed.local}/assertion_from_complexType_generated.xsl"/>
  109. <property name="typespecial_to_ref.xsl" location="${default_db_xml_cache}/typespecial_to_ref/typespecial_to_ref.xsl"/>
  110. <property name="typespecial_to_ref.xml" location="${transformed.local}/typespecial_to_ref.xml"/>
  111. <property name="typespecial_to_ref_final.xml" location="${transformed.local}/typespecial_to_ref_final.xml"/>
  112. <property name="typespecial_to_ref_final.xml_to_default_db.report.xml" location="${transformed.local}/typespecial_to_ref_final.xml_to_default_db.report.xml"/>
  113. <property name="default_db.dir" value="${basedir}/default_db"/>
  114. <property name="default_db.xml" value="${default_db.dir}/default_db.xsd"/>
  115. <property name="default_db.xml.get_url" value="${TargetNamespaceBindings}/SE/version-git/api.php/xml/xsd/default_db"/> <!-- TODO to be set -->
  116. <property name="TargetNamespaceBindings.xsl" value="${default_db_xml_cache.public}/system_cache__appinfo/TargetNamespaceBindings.xsl"/>
  117. <!-- important xsl templates another -->
  118. <property name="build_ant_universal_by_xsl_match.xsl" value="${default_db_xml_cache.public}/build_ant_universal_by_xsl_match.xsl"/>
  119. <!-- this is current dowloaded from API GET_ALL_XSD scehema of database to rebuild_structures and analysis etc...
  120. <xsl:variable name="URL" select="concat($api_url,'/dev-pl/se-feature-api/api.php/xml/xsd/',$db_name_prefix)"/>
  121. -->
  122. <!-- for WPS_Functions/default_db/CRM_PROCES_tree informations -->
  123. <!--<FeatureType xmlns:default_objects="https://biuro.biall-net.pl/wfs/default_objects">
  124. <Name>SystemProcess</Name>
  125. <Title>SystemProcess</Title>
  126. <Abstract>SystemProcess</Abstract>
  127. <Keywords>SystemProcess</Keywords>
  128. <SRS>EPSG:4326</SRS>
  129. </FeatureType>-->
  130. <property name="default_objects:SystemProces" value="default_objects:SystemProces"/> <!-- to retrieve SystemProces -->
  131. <!--<target name="detect_objects_parent_relations_clean">
  132. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  133. </target>-->
  134. <target name="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml" description="to retrieve CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml to build typespecial_to_ref.xml">
  135. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue" >
  136. <property name="p5suis:say_text" value="we check for fresh resources list from default database for add to models current process 5 references" />
  137. </ant>
  138. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  139. <property name="build_get_wfs_recurse_xsl" value="${WPS_Functions}/get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml"/> <!-- TODO to be read by <ant antfile="${build_WPS_Functions.xml}" target="read_WPS_Functions.childproperties.builds"/> -->
  140. <ant antfile="${build_get_wfs_recurse_xsl}" target="bgwrx:check_if_file_older_than_minutes_and_call_action">
  141. <property name="bgwrx:check_if_file_older.max_minutes" value="1000000"/> <!-- 10000 -->
  142. <property name="bgwrx:check_if_file_older.call_action" value="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml"/>
  143. <property name="bgwrx:check_if_file_older.file_to_check" value="${CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml}"/>
  144. </ant>
  145. </target>
  146. <target name="typespecial_to_ref.xml.clean" description="to delete typespecial_to_ref.xml and typespecial_to_ref_final.xml">
  147. <delete file="${typespecial_to_ref.xml}" failonerror="false"/>
  148. <delete file="${typespecial_to_ref_final.xml}" failonerror="false"/>
  149. </target>
  150. <target name="typespecial_to_ref.xml" description="generate 1 stage of detecting @ref from resources by type specials " depends="save_build_properties,read_build_properties,typespecial_to_ref.xml.clean">
  151. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  152. <arg line="-v alex"/>
  153. <arg line="generate first stage of detecting references from resources by type specials"/>
  154. </exec>-->
  155. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  156. <property name="p5suis:say_text" value="generate first stage of detecting references from resources by type specials. " />
  157. </ant>
  158. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  159. <xslt basedir="./" style="${typespecial_to_ref.xsl}" in="${CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml}" destdir="./" out="${typespecial_to_ref.xml}" >
  160. <factory name="net.sf.saxon.TransformerFactoryImpl">
  161. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  162. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/typespecial_to_ref/typespecial_to_ref.xsd}typespecial_refererences"/>
  163. </factory>
  164. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  165. <param name="cache" expression="refresh"/>
  166. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  167. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  168. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  169. <param name="default_db.dir" expression="${default_db.dir}"/>
  170. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  171. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  172. <param name="NamespaceBinding.xml" expression="${NamespaceBinding.xml}"/>
  173. <param name="procesy5_system_schema.xml" expression="${procesy5_system_schema.xml}"/>
  174. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  175. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  176. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  177. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  178. </xslt>
  179. <echo> Complete </echo>
  180. </target>
  181. <target name="typespecial_to_ref_final.xml" description="generate final stage of detecting @ref from resources by type specials. Now we are able to merge objects and do all new objects calculations if needed" depends="save_build_properties,read_build_properties, typespecial_to_ref.xml">
  182. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  183. <arg line="-v alex"/>
  184. <arg line="generate final stage of detecting references from resources by type specials - now we can merge object and after rebuild all system obbjects "/>
  185. </exec>-->
  186. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  187. <property name="p5suis:say_text" value="generate final stage of detecting references from resources by type specials - now we can merge object and after rebuild all system obbjects "/>
  188. </ant>
  189. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  190. <xslt basedir="./" style="${typespecial_to_ref.xsl}" in="${typespecial_to_ref.xml}" destdir="./" out="${typespecial_to_ref_final.xml}" >
  191. <factory name="net.sf.saxon.TransformerFactoryImpl">
  192. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  193. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/typespecial_to_ref/typespecial_to_ref.xsd}typespecial_to_ref_final"/>
  194. </factory>
  195. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  196. <param name="cache" expression="refresh"/>
  197. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  198. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  199. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  200. <param name="default_db.dir" expression="${default_db.dir}"/>
  201. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  202. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  203. <param name="NamespaceBinding.xml" expression="${NamespaceBinding.xml}"/>
  204. <param name="procesy5_system_schema.xml" expression="${procesy5_system_schema.xml}"/>
  205. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  206. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  207. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  208. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  209. </xslt>
  210. <echo> Complete </echo>
  211. </target>
  212. <target name="typespecial_to_ref_final.xml_to_default_db" description="save imported schemas to database repository" depends="save_build_properties,read_build_properties,typespecial_to_ref.xml.clean,typespecial_to_ref_final.xml">
  213. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  214. <arg line="-v alex"/>
  215. <arg line="save imported schemas to database repository"/>
  216. </exec>-->
  217. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  218. <property name="p5suis:say_text" value="save imported schemas to database repository" />
  219. </ant>
  220. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  221. <xslt basedir="./" style="${typespecial_to_ref.xsl}" in="${typespecial_to_ref_final.xml}" destdir="./" out="${typespecial_to_ref_final.xml_to_default_db.report.xml}" >
  222. <factory name="net.sf.saxon.TransformerFactoryImpl">
  223. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  224. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/typespecial_to_ref/typespecial_to_ref.xsd}to_default_db"/>
  225. </factory>
  226. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  227. <param name="cache" expression="refresh"/>
  228. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  229. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  230. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  231. <param name="default_db.dir" expression="${default_db.dir}"/>
  232. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  233. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  234. <param name="NamespaceBinding.xml" expression="${NamespaceBinding.xml}"/>
  235. <param name="procesy5_system_schema.xml" expression="${procesy5_system_schema.xml}"/>
  236. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  237. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  238. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  239. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  240. </xslt>
  241. <echo> Complete </echo>
  242. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  243. <property name="p5suis:say_text" value="Completed type special references" />
  244. </ant>
  245. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  246. </target>
  247. <target name="save_build_properties" >
  248. <ant antfile="${WPS_Functions.build}" inheritall="yes"/>
  249. <ant antfile="${build_SE.xml}" target="save_build_properties"/>
  250. <loadproperties srcfile="${build_SE.properties}"/>
  251. <echo>#346 will write $build_properties = ${build_properties} and $build_properties.xml = ${build_properties.xml} </echo>
  252. <echoproperties destfile="${build_properties}" />
  253. <echoproperties destfile="${build_properties.xml}" format="xml"/>
  254. </target>
  255. <!--<target name="read_build_properties_check">
  256. <!-\-<condition property="read_build_properties_check" taskname="save_build_properties" >
  257. <available file="${build_properties}"/>
  258. </condition>-\->
  259. <antcall target="save_build_properties"/>
  260. <loadproperties srcfile="${build_properties}"/>
  261. </target>-->
  262. <target name="read_build_properties">
  263. <loadproperties srcfile="${build_properties}"/>
  264. <ant antfile="${build_SE.xml}" target="save_build_properties"/>
  265. <loadproperties srcfile="${build_SE.properties}"/>
  266. </target>
  267. <target name="procesy5_system_schema.xml_if_not_exists_check" description="to be called from procesy5_system_schema.xml_if_not_exists">
  268. <echo>Debug test relative property object_modeling_basedir=${object_modeling_basedir} </echo>
  269. <condition property="procesy5_system_schema.xml_if_not_exists_check" taskname="procesy5_system_schema.xml_if_not_exists">
  270. <available file="${procesy5_system_schema.xml}"/>
  271. </condition>
  272. </target>
  273. <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">
  274. <echo>procesy5_system_schema.xml_if_not_exists we do it by antcall procesy5_system_schema.xml </echo>
  275. <antcall target="procesy5_system_schema.xml"/>
  276. </target>
  277. <target name="empty.xml" description="Builds empty.xml">
  278. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  279. </target>
  280. <target name="procesy5_system_schema.xml" depends="empty.xml" description="Generate procesy5_system_schema.xml and vrtfNamespaces.xml which can be not correct">
  281. <sleep seconds="2"/>
  282. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  283. <arg line="-v alex"/>
  284. <arg line="Generating process 5 system schema"/>
  285. </exec>-->
  286. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  287. <property name="p5suis:say_text" value="Generating process 5 system schema" />
  288. </ant>
  289. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  290. <antcall target="delete.external_schema_table.path"/>
  291. <mkdir dir="${default_db.instance.xml}"/>
  292. <mkdir dir="${transformed.local}"/>
  293. <delete file="${procesy5_system_schema.xml}" failonerror="false"/>
  294. <echo> run ${get_all_xsd.xsl} with param procesy5_system_schema_collection_dir=${basedir}; </echo>
  295. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${empty.xml}" destdir="./" out="${procesy5_system_schema.xml}" >
  296. <factory name="net.sf.saxon.TransformerFactoryImpl">
  297. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  298. <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"/>
  299. </factory>
  300. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  301. <param name="cache" expression="refresh"/>
  302. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  303. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  304. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  305. <param name="default_db.dir" expression="${default_db.dir}"/>
  306. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  307. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  308. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  309. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  310. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  311. <param name="basedir" expression="${basedir}"/>
  312. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  313. </xslt>
  314. <sequential>
  315. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  316. <property name="p5suis:say_text" value="analyzing process 5 schema namespaces" />
  317. </ant>
  318. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  319. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  320. <arg line="-v alex"/>
  321. <arg line="analyzing process 5 schema namespaces"/>
  322. </exec>-->
  323. <delete file="${vrtfNamespaces.xml}"/>
  324. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${vrtfNamespaces.xml}" >
  325. <factory name="net.sf.saxon.TransformerFactoryImpl">
  326. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  327. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}vrtfNamespaces"/>
  328. </factory>
  329. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  330. <param name="cache" expression="refresh"/>
  331. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  332. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  333. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  334. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  335. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  336. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  337. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  338. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  339. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  340. </xslt>
  341. <sleep seconds="1"/>
  342. </sequential>
  343. </target>
  344. <target name="procesy5_system_schema.xml_complete" description="Generate procesy5_system_schema.xml and vrtfNamespaces.xml which can be not correct">
  345. <sequential>
  346. <sleep seconds="2"/>
  347. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  348. <arg line="-v alex"/>
  349. <arg line="generating complete process 5 system schema"/>
  350. </exec>-->
  351. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  352. <property name="p5suis:say_text" value="generating complete process 5 system schema" />
  353. </ant>
  354. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  355. <mkdir dir="${default_db.instance.xml}"/>
  356. <mkdir dir="${transformed.local}"/>
  357. <delete file="${procesy5_system_schema.xml}" failonerror="false"/>
  358. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  359. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  360. <echo> run ${get_all_xsd.xsl} with param procesy5_system_schema_collection_dir=${basedir}; </echo>
  361. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${empty.xml}" destdir="./" out="${procesy5_system_schema.xml}" >
  362. <factory name="net.sf.saxon.TransformerFactoryImpl">
  363. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  364. <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"/>
  365. </factory>
  366. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  367. <param name="cache" expression="refresh"/>
  368. <param name="external_schema" expression="${external_schema}"/>
  369. <param name="external_schema_id_namespace_prefix" expression="${external_schema_id_namespace_prefix}"/>
  370. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  371. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  372. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  373. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  374. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  375. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  376. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  377. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  378. <param name="basedir" expression="${basedir}"/>
  379. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  380. </xslt>
  381. </sequential>
  382. <sleep seconds="1"/>
  383. <antcall target="vrtfNamespaces.xml"/>
  384. </target>
  385. <target name="vrtfNamespaces.xml" description="Procedure to create vrtfNamespaces.xml - used in some tasks especially in generate schema with id">
  386. <parallel threadcount="2">
  387. <sequential>
  388. <!--<exec executable="say" failifexecutionfails="false">
  389. <arg line="-v alex"/>
  390. <arg line="Generating namspaces list "/>
  391. </exec>-->
  392. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  393. <property name="p5suis:say_text" value="Generating namspaces list" />
  394. </ant>
  395. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  396. </sequential>
  397. <sequential>
  398. <delete file="${vrtfNamespaces.xml}"/>
  399. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${vrtfNamespaces.xml}" >
  400. <factory name="net.sf.saxon.TransformerFactoryImpl">
  401. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  402. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}vrtfNamespaces"/>
  403. </factory>
  404. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  405. <param name="cache" expression="refresh"/>
  406. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  407. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  408. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  409. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  410. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  411. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  412. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  413. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  414. <param name="basedir" expression="${basedir}"/>
  415. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  416. </xslt>
  417. </sequential>
  418. </parallel>
  419. </target>
  420. <target name="generate_schema_with_id" depends="procesy5_system_schema.xml" description="first we generate schema to check if all have correct ID">
  421. <!-- schema @id fixing -->
  422. <parallel threadcount="2">
  423. <sequential>
  424. <!--<sleep seconds="3"/>-->
  425. <!--<exec executable="say" failifexecutionfails="false">
  426. <arg line="-v alex"/>
  427. <arg line="Checking schema for correnct id attributes if not generating them"/>
  428. </exec>-->
  429. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  430. <property name="p5suis:say_text" value="Checking schema for correnct id attributes if not generating them" />
  431. </ant>
  432. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  433. </sequential>
  434. <sequential>
  435. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  436. <delete file="${parse_schema_to_generate_id_raport.xml}"/>
  437. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  438. <xslt basedir="./" style="${parse_schema_to_generate_id.xsl}" in="${empty.xml}" destdir="./" out="${parse_schema_to_generate_id_raport.xml}" >
  439. <factory name="net.sf.saxon.TransformerFactoryImpl">
  440. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  441. <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"/>
  442. </factory>
  443. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  444. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  445. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
  446. <param name="new-schema-with-ID-to-move-and-rename-to-xsd" expression="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  447. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  448. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  449. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  450. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  451. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  452. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  453. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  454. <param name="basedir" expression="${basedir}"/>
  455. <!--<param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>-->
  456. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  457. </xslt>
  458. <antcall target="p5suis.p5suis.say_to_queue.copy_file" >
  459. <param name="p5suis.say_to_queue.copy_file" value="${parse_schema_to_generate_id_raport.xml}"/>
  460. </antcall>
  461. <echo>#466 check what were missing in no-id directory</echo>
  462. <sleep seconds="3"/>
  463. </sequential>
  464. </parallel>
  465. </target>
  466. <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">
  467. <parallel threadcount="2">
  468. <sequential>
  469. <!--<exec executable="say" failifexecutionfails="false">
  470. <arg line="-v alex"/>
  471. <arg line="Generating Namespaces Binding to map models to API address"/>
  472. </exec>-->
  473. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  474. <property name="p5suis:say_text" value="Generating Namespaces Binding to map models to API address" />
  475. </ant>
  476. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  477. </sequential>
  478. <sequential>
  479. <xslt basedir="./" style="${TargetNamespaceBindings.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${NamespaceBinding.xml}.temp.xml" force="true">
  480. <factory name="net.sf.saxon.TransformerFactoryImpl">
  481. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  482. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}NamespaceBinding.xml"/>
  483. </factory>
  484. <param name="targetNamespace_DEFAULTS_prefix" expression="${targetNamespace_DEFAULTS_prefix}"/>
  485. <param name="targetNamespace_DEFAULTS_prefix_objects" expression="${targetNamespace_DEFAULTS_prefix_objects}"/>
  486. <param name="TargetNamespaceBindingsApiUrl" expression="${TargetNamespaceBindingsApiUrl}"/>
  487. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  488. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  489. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  490. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  491. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  492. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  493. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  494. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  495. <param name="basedir" expression="${basedir}"/>
  496. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  497. </xslt>
  498. </sequential>
  499. </parallel>
  500. </target>
  501. <target name="element_complexType.xml.single" description="SINGLE generate list of elements and Complextype to generate flat and tr_map">
  502. <parallel threadcount="2">
  503. <sequential>
  504. <!--<exec executable="say" failifexecutionfails="false">
  505. <arg line="-v alex"/>
  506. <arg line="generating xml object list from system schema to provide making multi thread build lists for complex Types and transaction maps and others "/>
  507. </exec>-->
  508. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  509. <property name="p5suis:say_text" value="generating xml object list from system schema to provide making multi thread build lists for complex Types and transaction maps and others" />
  510. </ant>
  511. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  512. </sequential>
  513. <sequential>
  514. <delete file="${element_complexType.xml}"/>
  515. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${element_complexType.xml}" >
  516. <factory name="net.sf.saxon.TransformerFactoryImpl">
  517. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  518. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}element_complexType"/>
  519. </factory>
  520. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  521. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  522. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  523. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  524. <param name="debug_level_param" expression="${debug_level_param}"/>
  525. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  526. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  527. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  528. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  529. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  530. <param name="basedir" expression="${basedir}"/>
  531. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  532. </xslt>
  533. </sequential>
  534. </parallel>
  535. </target>
  536. <target name="element_complexType.xml" depends="procesy5_system_schema.xml_complete,NamespaceBinding.xml,element_complexType.xml.single" description=" generate list of elements and Complextype to generate flat and tr_map">
  537. <!--<antcall target="element_complexType.xml.single" inheritall="yes"/>-->
  538. </target>
  539. <target name="build_element_complexType.xml.single" depends="save_build_properties,read_build_properties,element_complexType.xml.single,build_element_complexType.xml.single.task" description="Just element_complexType elements">
  540. <!--<antcall target="build_element_complexType.xml.single.task" inheritall="yes"/>-->
  541. </target>
  542. <target name="build_element_complexType.xml.complete.test">
  543. <echo>testing if exist $build_element_complexType.xml.complete ${build_element_complexType.xml.complete}</echo>
  544. <!--<exec executable="say" failifexecutionfails="false">
  545. <arg line="-v alex"/>
  546. <arg line="Testing if ComplexType has beed completed?"/>
  547. </exec>-->
  548. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  549. <property name="p5suis:say_text" value="Testing if ComplexType has beed completed?" />
  550. </ant>
  551. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  552. <condition property="build_element_complexType.xml.complete.cond" taskname="build_element_complexType.xml.completel.cond">
  553. <available file="${build_element_complexType.xml.complete}"/>
  554. </condition>
  555. </target>
  556. <target name="build_element_complexType.xml.complete.cond" depends="build_element_complexType.xml.complete.test,build_element_complexType.xml.complete.fail,build_element_complexType.xml.complete.ok"/>
  557. <target name="build_element_complexType.xml.complete.fail" unless="${build_element_complexType.xml.complete.cond}">
  558. <echo> not aviabble file $build_element_complexType.xml.complete ${build_element_complexType.xml.complete} calling to build.single</echo>
  559. <!--<exec executable="say" failifexecutionfails="false">
  560. <arg line="-v alex"/>
  561. <arg line="need to build Complex Type!"/>
  562. </exec>-->
  563. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  564. <property name="p5suis:say_text" value="need to build Complex Type!" />
  565. </ant>
  566. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  567. <antcall target="build_element_complexType.xml.single.task"/>
  568. </target>
  569. <target name="build_element_complexType.xml.complete.ok" if="${build_element_complexType.xml.complete.cond}">
  570. <echo> are complete $build_element_complexType.xml.complete ${build_element_complexType.xml.complete} calling to build.single</echo>
  571. <!--<exec executable="say" failifexecutionfails="false">
  572. <arg line="-v alex"/>
  573. <arg line="Are complete!"/>
  574. </exec>-->
  575. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  576. <property name="p5suis:say_text" value="Are complete!" />
  577. </ant>
  578. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  579. </target>
  580. <target name="build_element_complexType.xml.single.task" depends="save_build_properties,read_build_properties,SYSTEM.transformed.p5build.SYSTEM.transformed" description="Just element_complexType elements">
  581. <parallel threadcount="2">
  582. <sequential>
  583. <!--<exec executable="say" failifexecutionfails="false">
  584. <arg line="-v alex"/>
  585. <arg line="generating multi thread build lists for complex Types "/>
  586. </exec>-->
  587. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  588. <property name="p5suis:say_text" value="generating multi thread build lists for complex Types" />
  589. </ant>
  590. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  591. </sequential>
  592. <sequential>
  593. <delete file="${build_element_complexType.xml}"/>
  594. <!--<tempfile property="build_element_complexType.xml.properties_override" prefix="build_element_complexType.xml.properties_override" suffix=".xml" destdir="${transformed.local}" deleteonexit="no"/>-->
  595. <!--<echoxml file="${build_element_complexType.xml.properties_override}" >
  596. <properties>
  597. <property name="uuid" value="PROCES_INIT_TREE_$${xpath_value}"/> <!-\- to be evaluated in child xsl/ant-\->
  598. <property name="typeName" value="default_db:PROCES_INIT"/>
  599. <property name="xpath" value="ID"/>
  600. </properties>
  601. </echoxml>-->
  602. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_element_complexType.xml}" >
  603. <factory name="net.sf.saxon.TransformerFactoryImpl">
  604. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  605. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_element_complexType.xml"/>
  606. </factory>
  607. <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
  608. <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
  609. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  610. <param name="temp" expression="/tmp"/>
  611. <param name="basedir" expression="${basedir}"/>
  612. <param name="antfile" expression=""/>
  613. <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
  614. <param name="match_child_element" expression=""/>
  615. <param name="match_child_element_property_name" expression=""/>
  616. <param name="properties.xml" expression="${build_properties.xml}"/>
  617. <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
  618. <param name="parallel" expression="1"/>
  619. <param name="threadCount" expression="${threadCount}"/>
  620. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  621. <param name="debug_level_param" expression="${debug_level_param}"/>
  622. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  623. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  624. <!--<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-->
  625. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  626. </xslt>
  627. <!--<exec executable="say" failifexecutionfails="false">
  628. <arg line="-v alex"/>
  629. <arg line="executing multi thread build for complex Types by thread count ${threadCount}"/>
  630. </exec>-->
  631. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  632. <property name="p5suis:say_text" value="executing multi thread build for complex Types by thread count ${threadCount}" />
  633. </ant>
  634. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  635. <!--<delete dir="${build_complexType.local}"/>-->
  636. <ant antfile="${build_element_complexType.xml}"/>
  637. <touch file="${build_element_complexType.xml.complete}"/>
  638. <!--<exec executable="say" failifexecutionfails="false">
  639. <arg line="-v alex"/>
  640. <arg line="generating complex types complete"/>
  641. </exec>-->
  642. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  643. <property name="p5suis:say_text" value="generating complex types complete" />
  644. </ant>
  645. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  646. </sequential>
  647. </parallel>
  648. </target>
  649. <!-- depends="element_complexType.xml,save_build_properties,empty.xml" -->
  650. <target name="build_element_complexType.xml" depends="element_complexType.xml,save_build_properties,read_build_properties,empty.xml" description="generate build_element_complexType.xml for parallel launch">
  651. <!--<antcall target="build_element_complexType.xml.single.task" inheritall="yes"/> lower should exec only conditionally-->
  652. <antcall target="build_element_complexType.xml.complete.cond" inheritall="yes"/>
  653. </target>
  654. <target name="delete.build_complexType.local" description="to optionally delete all created models build_complexType.local - not needed after failure so - optionally">
  655. <delete dir="${build_complexType.local}"/>
  656. </target>
  657. <!--<target name="build_complexType" depends="element_complexType.xml" description="we generate all complexType for all known elements and complexType in schema">
  658. <delete dir="${build_complexType.local}"/>
  659. <xslt basedir="./" style="${build_complexType.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_complexType_raport.xml}" >
  660. <factory name="net.sf.saxon.TransformerFactoryImpl">
  661. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  662. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}element_complexType"/>
  663. </factory>
  664. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  665. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  666. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  667. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  668. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  669. </xslt>
  670. </target>-->
  671. <!--depends="build_element_complexType.xml" depends="save_build_properties,read_build_properties"-->
  672. <target name="build_tr_map.xml" depends="build_element_complexType.xml" description="we generate all tr_map for all known elements and complexType in schema in parallel">
  673. <antcall target="build_tr_map.xml.single"/>
  674. </target>
  675. <target name="build_tr_map.xml.single" depends="element_complexType.xml.single" description="we generate all tr_map for all known elements and complexType in schema in parallel">
  676. <parallel threadcount="2">
  677. <sequential>
  678. <!--<sleep seconds="2"/>-->
  679. <!--<exec executable="say" failifexecutionfails="false">
  680. <arg line="-v alex"/>
  681. <arg line="deleting and generating transaction map by multi thread build list. To provide easy object engine calculations like creating simple schema"/>
  682. </exec>-->
  683. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  684. <property name="p5suis:say_text" value="deleting and generating transaction map by multi thread build list. To provide easy object engine calculations like creating simple schema" />
  685. </ant>
  686. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  687. </sequential>
  688. <sequential>
  689. <echo> deleting build_tr_map.xml ${build_tr_map.xml} </echo>
  690. <delete file="${build_tr_map.xml}"/>
  691. <delete file="${build_tr_map.xml.complete}" failonerror="false"/>
  692. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_tr_map.xml}" >
  693. <factory name="net.sf.saxon.TransformerFactoryImpl">
  694. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  695. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_tr_map.xml"/>
  696. </factory>
  697. <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
  698. <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
  699. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  700. <param name="temp" expression="/tmp"/>
  701. <param name="basedir" expression="${basedir}"/>
  702. <param name="antfile" expression=""/>
  703. <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
  704. <param name="match_child_element" expression=""/>
  705. <param name="match_child_element_property_name" expression=""/>
  706. <param name="properties.xml" expression="${build_properties.xml}"/>
  707. <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
  708. <param name="parallel" expression="1"/>
  709. <param name="threadCount" expression="${threadCount}"/>
  710. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  711. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  712. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  713. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  714. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  715. </xslt>
  716. </sequential>
  717. </parallel>
  718. <sequential>
  719. <!--<exec executable="say" failifexecutionfails="false">
  720. <arg line="-v alex"/>
  721. <arg line="executing build transaction map list by thread count ${threadCount}"/>
  722. </exec>-->
  723. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  724. <property name="p5suis:say_text" value="executing build transaction map list by thread count ${threadCount}" />
  725. </ant>
  726. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  727. <sleep seconds="2"/>
  728. <ant antfile="${build_tr_map.xml}"/>
  729. <!--<exec executable="say" failifexecutionfails="false">
  730. <arg line="-v alex"/>
  731. <arg line="transaction map complete"/>
  732. </exec>-->
  733. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  734. <property name="p5suis:say_text" value="transaction map complete" />
  735. </ant>
  736. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  737. <touch file="${build_tr_map.xml.complete}"/>
  738. </sequential>
  739. </target>
  740. <target name="delete.p5_tr_map.local" description="to use when refresh is needed after model change">
  741. <delete dir="${p5_tr_map.local}"/>
  742. </target>
  743. <!--<target name="build_tr_map" depends="build_element_complexType.xml" description="we generate all tr_map for all known elements and complexType in schema">
  744. <delete dir="${p5_tr_map.local}"/>
  745. <xslt basedir="./" style="${p5_tr_map.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_tr_map_raport.xml}" >
  746. <factory name="net.sf.saxon.TransformerFactoryImpl">
  747. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  748. <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"/>
  749. </factory>
  750. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  751. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  752. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  753. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  754. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  755. </xslt>
  756. </target>-->
  757. <!-- depends="build_tr_map" -->
  758. <target name="build_detect_resource_type" depends="build_tr_map.xml" description="we generate detect_resource_type for use it for generate detect_objects_parent_relations">
  759. <antcall target="build_detect_resource_type.single"/>
  760. <!-- 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-->
  761. </target>
  762. <target name="build_detect_resource_type.xml.single.task" depends="save_build_properties,read_build_properties" description="Just build_detect_resource_type.xml elements">
  763. <parallel threadcount="2">
  764. <sequential>
  765. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  766. <arg line="-v alex"/>
  767. <arg line="generating multi thread build lists for complex resource types relations "/>
  768. </exec>-->
  769. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  770. <property name="p5suis:say_text" value="generating multi thread build lists for complex resource types relations " />
  771. </ant>
  772. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  773. </sequential>
  774. <sequential>
  775. <delete file="${build_detect_resource_type.xml}" failonerror="false"/>
  776. <delete file="${build_detect_resource_type.complete}" failonerror="false"/>
  777. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_detect_resource_type.xml}" >
  778. <factory name="net.sf.saxon.TransformerFactoryImpl">
  779. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  780. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_detect_resource_type.xml"/>
  781. </factory>
  782. <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
  783. <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
  784. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  785. <param name="temp" expression="/tmp"/>
  786. <param name="basedir" expression="${basedir}"/>
  787. <param name="antfile" expression=""/>
  788. <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
  789. <param name="match_child_element" expression=""/>
  790. <param name="match_child_element_property_name" expression=""/>
  791. <param name="properties.xml" expression="${build_properties.xml}"/>
  792. <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
  793. <param name="parallel" expression="1"/>
  794. <param name="threadCount" expression="${threadCount}"/>
  795. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  796. <param name="debug_level_param" expression="${debug_level_param}"/>
  797. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  798. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  799. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  800. <param name="detect_resource_type.xsl" expression="${detect_resource_type.xsl}"/>
  801. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  802. <!--<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-->
  803. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  804. </xslt>
  805. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  806. <arg line="-v alex"/>
  807. <arg line="executing multi thread build for relations by thread count ${threadCount}"/>
  808. </exec>-->
  809. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  810. <property name="p5suis:say_text" value="executing multi thread build for relations by thread count ${threadCount}" />
  811. </ant>
  812. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  813. <!--<delete dir="${build_complexType.local}"/>-->
  814. <ant antfile="${build_detect_resource_type.xml}"/>
  815. <touch file="${build_detect_resource_type.complete}"/>
  816. <!--<exec executable="say" failifexecutionfails="false">
  817. <arg line="-v alex"/>
  818. <arg line="generating relations types complete"/>
  819. </exec>-->
  820. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  821. <property name="p5suis:say_text" value="generating relations types complete" />
  822. </ant>
  823. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  824. </sequential>
  825. </parallel>
  826. </target>
  827. <target name="build_detect_resource_type.single" depends="save_build_properties,read_build_properties" description="we generate detect_resource_type for use it for generate detect_objects_parent_relations">
  828. <antcall target="build_detect_resource_type.xml.single.task"/>
  829. <!-- todo -->
  830. <!--<delete file="${build_detect_resource_type.xml}"/>
  831. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_detect_resource_type.xml}" >
  832. <factory name="net.sf.saxon.TransformerFactoryImpl">
  833. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  834. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_detect_resource_type.xml"/>
  835. </factory>
  836. <!-\-<param name="match_root_element" expression="wfs:FeatureCollection"/>-\->
  837. <param name="match_element" expression=""/><!-\- To be set universally to another type of object tree -\->
  838. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  839. <param name="temp" expression="/tmp"/>
  840. <param name="basedir" expression="${basedir}"/>
  841. <param name="antfile" expression=""/>
  842. <!-\-<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-\->
  843. <param name="match_child_element" expression=""/>
  844. <param name="match_child_element_property_name" expression=""/>
  845. <param name="properties.xml" expression="${build_properties.xml}"/>
  846. <!-\-<param name="properties_override.xml" expression="${properties_override.xml}"/>-\->
  847. <param name="parallel" expression="1"/>
  848. <param name="threadCount" expression="${threadCount}"/>
  849. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  850. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  851. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  852. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  853. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  854. </xslt>
  855. <ant antfile="${build_detect_resource_type.xml}"/>-->
  856. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  857. <arg line="-v alex"/>
  858. <arg line="generating detect resource type xml - to allow generate compelte detect objects parent relations xml . with also calculation for every object in detect resource type directory"/>
  859. </exec>
  860. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  861. <delete file="${detect_resource_type.xml}"/>
  862. <xslt basedir="./" style="${detect_resource_type.xsl}" in="${empty.xml}" destdir="./" out="${detect_resource_type.xml}" force="yes" >
  863. <factory name="net.sf.saxon.TransformerFactoryImpl">
  864. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  865. <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"/>
  866. </factory>
  867. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  868. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  869. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  870. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  871. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
  872. <param name="NamespaceBinding.xml" expression="${NamespaceBinding.xml}"/> <!-\- todo for better handle DefaultObjects etc -\->
  873. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  874. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  875. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  876. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  877. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  878. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  879. </xslt>
  880. <exec executable="say" spawn="true" failifexecutionfails="false">
  881. <arg line="-v alex"/>
  882. <arg line="complete build detect resource type single"/>
  883. </exec>-->
  884. <!-- 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-->
  885. </target>
  886. <!-- depends="build_detect_resource_type" -->
  887. <target name="build_detect_objects_parent_relations" depends="build_detect_resource_type" description="we generate detect resources parent relations -to dir detect_resource_type ">
  888. <antcall target="build_detect_objects_parent_relations.single"/>
  889. <!--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-->
  890. </target>
  891. <target name="detect_resource_type.xml.test">
  892. <echo>testing if exist $detect_resource_type.xml</echo>
  893. <condition property="build_detect_resource_type.complete.cond" taskname="detect_resource_type.xml.cond">
  894. <available file="${build_detect_resource_type.complete}"/>
  895. </condition>
  896. </target>
  897. <target name="detect_resource_type.xml.cond" depends="detect_resource_type.xml.test,detect_resource_type.xml.fail"/>
  898. <target name="detect_resource_type.xml.fail" unless="${build_detect_resource_type.complete.cond}">
  899. <echo> not aviabble file $build_detect_resource_type.complete ${build_detect_resource_type.complete} calling to build.single</echo>
  900. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  901. <arg line="-v alex"/>
  902. <arg line="need to generate detect resource type xml"/>
  903. </exec>-->
  904. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  905. <property name="p5suis:say_text" value="need to generate detect resource type xml" />
  906. </ant>
  907. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  908. <antcall target="build_detect_resource_type.single"/>
  909. </target>
  910. <target name="build_detect_objects_parent_relations.single" depends="save_build_properties,read_build_properties,detect_resource_type.xml.cond" description="we generate detect resources parent relations -to dir detect_resource_type ">
  911. <parallel threadcount="2">
  912. <sequential>
  913. <!--<exec executable="say" failifexecutionfails="false">
  914. <arg line="-v alex"/>
  915. <arg line="generating detect_object_parent_relations_single with distinct object definitions in detect_resource_type directory."/>
  916. </exec>-->
  917. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  918. <property name="p5suis:say_text" value="generating detect_object_parent_relations_single with distinct object definitions in detect_resource_type directory." />
  919. </ant>
  920. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  921. </sequential>
  922. <sequential>
  923. <delete file="${detect_objects_parent_relations.xml}"/>
  924. <xslt basedir="./" style="${detect_objects_parent_relations.xsl}" in="${empty.xml}" destdir="./" out="${detect_objects_parent_relations.xml}" force="yes" >
  925. <factory name="net.sf.saxon.TransformerFactoryImpl">
  926. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  927. <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_objects_parent_relations"/>
  928. </factory>
  929. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  930. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  931. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  932. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  933. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
  934. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  935. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  936. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  937. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  938. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  939. <param name="basedir" expression="${basedir}"/>
  940. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  941. </xslt>
  942. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  943. <arg line="-v alex"/>
  944. <arg line="complete build detect objects parent relations single"/>
  945. </exec>-->
  946. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  947. <property name="p5suis:say_text" value="complete build detect objects parent relations single" />
  948. </ant>
  949. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  950. </sequential>
  951. </parallel>
  952. <!--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-->
  953. </target>
  954. <!--disabled at 2018-01-05 single pass is faster <target name="build_detect_objects_parent_relations.single.task" depends="save_build_properties,read_build_properties,element_complexType.xml.single" description="Just build build_detect_objects_parent_relations.xml ">
  955. <parallel threadcount="2">
  956. <sequential>
  957. <exec executable="say" spawn="true" failifexecutionfails="false">
  958. <arg line="-v alex"/>
  959. <arg line="generating multi thread build lists for detect parent relations "/>
  960. </exec>
  961. </sequential>
  962. <sequential>
  963. <delete file="${build_detect_objects_parent_relations.xml}" failonerror="false"/>
  964. <delete file="${build_detect_objects_parent_relations.complete}" failonerror="false"/>
  965. <mkdir dir="${detect_objects_parent_relations.local}"/>
  966. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_detect_objects_parent_relations.xml}" >
  967. <factory name="net.sf.saxon.TransformerFactoryImpl">
  968. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  969. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_detect_objects_parent_relations.xml"/>
  970. </factory>
  971. <!-\-<param name="match_root_element" expression="wfs:FeatureCollection"/>-\->
  972. <param name="match_element" expression=""/><!-\- To be set universally to another type of object tree -\->
  973. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  974. <param name="temp" expression="/tmp"/>
  975. <param name="basedir" expression="${basedir}"/>
  976. <param name="antfile" expression=""/>
  977. <!-\-<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-\->
  978. <param name="match_child_element" expression=""/>
  979. <param name="match_child_element_property_name" expression=""/>
  980. <param name="properties.xml" expression="${build_properties.xml}"/>
  981. <!-\-<param name="properties_override.xml" expression="${properties_override.xml}"/>-\->
  982. <param name="parallel" expression="1"/>
  983. <param name="threadCount" expression="${threadCount}"/>
  984. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  985. <param name="debug_level_param" expression="${debug_level_param}"/>
  986. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  987. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  988. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  989. <param name="detect_resource_type.xsl" expression="${detect_resource_type.xsl}"/>
  990. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  991. <!-\-<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-\->
  992. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  993. </xslt>
  994. <exec executable="say" spawn="true" failifexecutionfails="false">
  995. <arg line="-v alex"/>
  996. <arg line="executing multi thread build for relations by thread count ${threadCount}"/>
  997. </exec>
  998. <!-\-<delete dir="${build_complexType.local}"/>-\->
  999. <ant antfile="${build_detect_objects_parent_relations.xml}"/>
  1000. <touch file="${build_detect_objects_parent_relations.complete}"/>
  1001. <exec executable="say" failifexecutionfails="false">
  1002. <arg line="-v alex"/>
  1003. <arg line="generating relations types complete"/>
  1004. </exec>
  1005. </sequential>
  1006. </parallel>
  1007. </target>-->
  1008. <target name="delete.detect_resource_type.local" description="to optionaly delete all p5_tr_map - not use when crashed">
  1009. <delete dir="${detect_resource_type.local}"/>
  1010. </target>
  1011. <target name="detect_objects_parent_relations.xml.test" description="to detect if created ${detect_objects_parent_relations.xml}">
  1012. <condition property="detect_objects_parent_relations.xml.cond" taskname="detect_objects_parent_relations.xml.cond">
  1013. <available file="${detect_objects_parent_relations.xml}"/>
  1014. </condition>
  1015. </target>
  1016. <target name="detect_objects_parent_relations.xml.cond" depends="detect_objects_parent_relations.xml.test,detect_objects_parent_relations.xml.fail" description="to detect if created ${detect_objects_parent_relations.xml}"/>
  1017. <target name="detect_objects_parent_relations.xml.fail" unless="${detect_objects_parent_relations.xml.cond}" >
  1018. <echo> not aviable $detect_objects_parent_relations.xml ${detect_objects_parent_relations.xml} generating single </echo>
  1019. <antcall target="build_detect_objects_parent_relations.single"/>
  1020. </target>
  1021. <!-- depends="build_detect_objects_parent_relations" depends="save_build_properties,read_build_properties" -->
  1022. <target name="build_simpleSchema_for_recurse_ant.single" depends="save_build_properties,read_build_properties">
  1023. <parallel threadcount="2">
  1024. <sequential>
  1025. <!--<exec executable="say" failifexecutionfails="false">
  1026. <arg line="-v alex"/>
  1027. <arg line="deleting and generating simple schema to provide easy object access by wfs filters"/>
  1028. </exec>-->
  1029. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1030. <property name="p5suis:say_text" value="deleting and generating simple schema to provide easy object access by wfs filters" />
  1031. </ant>
  1032. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1033. </sequential>
  1034. <sequential>
  1035. <delete dir="${simpleSchema.local}"/>
  1036. <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
  1037. <!--<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}" force="yes">
  1038. <factory name="net.sf.saxon.TransformerFactoryImpl">
  1039. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  1040. <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"/>
  1041. </factory>
  1042. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  1043. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  1044. <!-\-<param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  1045. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  1046. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>-\->
  1047. <param name="namespace_prefix" expression="${targetNamespace_DEFAULTS_prefix}"/>
  1048. <param name="detect_resource_type_dir" expression="${detect_resource_type.local}"/>
  1049. <param name="build_complexType_dir" expression="${build_complexType.local}"/>
  1050. <param name="simpleSchema_dir" expression="${simpleSchema.local}"/>
  1051. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  1052. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  1053. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  1054. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  1055. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  1056. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  1057. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  1058. </xslt>-->
  1059. <antcall target="build_simpleSchema_for_recurse_ant.single.task"/>
  1060. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  1061. <arg line="-v alex"/>
  1062. <arg line="complete build simpleSchema for recurse ant single"/>
  1063. </exec>-->
  1064. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1065. <property name="p5suis:say_text" value="complete build simpleSchema for recurse ant single" />
  1066. </ant>
  1067. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1068. </sequential>
  1069. </parallel>
  1070. </target>
  1071. <target name="build_simpleSchema_for_recurse_ant.single.task" depends="save_build_properties,read_build_properties" description="Build simple Schema by multithread ">
  1072. <parallel threadcount="2">
  1073. <sequential>
  1074. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  1075. <arg line="-v alex"/>
  1076. <arg line="generating multi thread build lists for complex resource types relations "/>
  1077. </exec>-->
  1078. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1079. <property name="p5suis:say_text" value="generating multi thread build lists for Simple Schema " />
  1080. </ant>
  1081. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1082. </sequential>
  1083. <sequential>
  1084. <delete file="${build_SimpleSchema.xml}" failonerror="false"/>
  1085. <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
  1086. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_SimpleSchema.xml}" >
  1087. <factory name="net.sf.saxon.TransformerFactoryImpl">
  1088. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  1089. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_SimpleSchema.xml"/>
  1090. </factory>
  1091. <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
  1092. <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
  1093. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  1094. <param name="temp" expression="/tmp"/>
  1095. <param name="basedir" expression="${basedir}"/>
  1096. <param name="antfile" expression=""/>
  1097. <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
  1098. <param name="match_child_element" expression=""/>
  1099. <param name="match_child_element_property_name" expression=""/>
  1100. <param name="properties.xml" expression="${build_properties.xml}"/>
  1101. <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
  1102. <param name="parallel" expression="1"/>
  1103. <param name="threadCount" expression="${threadCount}"/>
  1104. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  1105. <param name="debug_level_param" expression="${debug_level_param}"/>
  1106. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  1107. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  1108. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  1109. <param name="detect_resource_type.xsl" expression="${detect_resource_type.xsl}"/>
  1110. <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
  1111. <!--<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-->
  1112. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  1113. </xslt>
  1114. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  1115. <arg line="-v alex"/>
  1116. <arg line="executing multi thread build for relations by thread count ${threadCount}"/>
  1117. </exec>-->
  1118. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1119. <property name="p5suis:say_text" value="executing multi thread build for Simple Schema by thread count ${threadCount}" />
  1120. </ant>
  1121. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1122. <!--<delete dir="${build_complexType.local}"/>-->
  1123. <ant antfile="${build_SimpleSchema.xml}"/>
  1124. <touch file="${build_simpleSchema_for_recurse_ant.single.complete}"/>
  1125. <!--<exec executable="say" failifexecutionfails="false">
  1126. <arg line="-v alex"/>
  1127. <arg line="generating relations types complete"/>
  1128. </exec>-->
  1129. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1130. <property name="p5suis:say_text" value="generating Simple Schema complete" />
  1131. </ant>
  1132. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1133. </sequential>
  1134. </parallel>
  1135. </target>
  1136. <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">
  1137. <antcall target="build_simpleSchema_for_recurse_ant.single"/>
  1138. <touch file="${build_simpleSchema_for_recurse_ant.single.complete}"/>
  1139. </target>
  1140. <!--<target name="generate_ant_data_business_modules" description="generate modules specified in "/>
  1141. <target name="read_db_structure" description="we read db structure to than analyze it against missing or not correct fields/tables/indexes "/>
  1142. <target name="modify_uncorrect_structure" description="we add missing structure fields/tables/indexes "/>
  1143. <target name="add_missing_structure" description="we add missing structure fields/tables/indexes "/>
  1144. <target name="read_installed_business_objects" description="we read current installed business_objects to verify to update them (version)"/>
  1145. <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"/>
  1146. <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 "/>
  1147. -->
  1148. <target name="detect_objects_parent_relations_clean" description="piewsze czyszczenie - pewnie nie ma @id">
  1149. <!--<exec command="make">
  1150. <arg line="clean"/>
  1151. </exec>-->
  1152. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1153. <delete dir="${detect_resource_type.local}"/>
  1154. <delete dir="${transformed.local}"/>
  1155. <delete dir="${build_complexType.local}"/>
  1156. <delete dir="${p5_tr_map.local}"/>
  1157. <delete dir="${simpleSchema.local}" />
  1158. </target>
  1159. <!--<target name="detect_objects_parent_relations" depends="detect_objects_parent_relations_clean" description="pierwsze szukanie relacji - moga nie miec @id">
  1160. <!-\-<exec command="make" failifexecutionfails="no">
  1161. <arg line="detect_objects_parent_relations"/>
  1162. </exec>-\->
  1163. <antcall target="build_complexType"/>
  1164. <antcall target="build_tr_map"/>
  1165. <antcall target="build_detect_resource_type"/>
  1166. </target>-->
  1167. <target depends="generate_schema_with_id" name="new-schema-with-ID-to-move-and-rename-to-xsd_test">
  1168. <condition taskname="new-schema-with-ID-to-move-and-rename-to-xsd" property="new-schema-with-ID-to-move-and-rename-to-xsd_exists">
  1169. <available file="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1170. </condition>
  1171. </target>
  1172. <target name="delete.external_schema_table.path" description="To delete generated by ${build_object_install_se_ant_object.xml} task system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external models">
  1173. <delete dir="${external_schema_table.path}" failonerror="false"/>
  1174. </target>
  1175. <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.cond" depends="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test,new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.fail,new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.ok" />
  1176. <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test">
  1177. <condition property="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test" taskname="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.cond">
  1178. <available file="${procesy5_system_schema.complete}"/>
  1179. </condition>
  1180. </target>
  1181. <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.fail" unless="${new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test}" />
  1182. <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.ok" if="${new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test}">
  1183. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1184. <property name="p5suis:say_text" value="need to generate schema with id" />
  1185. </ant>
  1186. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1187. </target>
  1188. <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete" description="to make procesy5 system schema only if no ${procesy5_system_schema.complete}"/>
  1189. <target name="new-schema-with-ID-to-move-and-rename-to-xsd" depends="save_build_properties,read_build_properties,new-schema-with-ID-to-move-and-rename-to-xsd_test" if="${new-schema-with-ID-to-move-and-rename-to-xsd_exists}">
  1190. <parallel failonany="true" threadCount="2">
  1191. <sequential>
  1192. <!--<exec executable="say" failifexecutionfails="false">
  1193. <arg line="-v alex"/>
  1194. <arg line="need to generate schema with id"/>
  1195. </exec>-->
  1196. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1197. <property name="p5suis:say_text" value="need to generate schema with id" />
  1198. </ant>
  1199. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1200. </sequential>
  1201. <sequential>
  1202. <copy todir="${basedir}">
  1203. <fileset dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1204. </copy>
  1205. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1206. </sequential>
  1207. </parallel>
  1208. <sequential>
  1209. <antcall target="procesy5_system_schema.xml"/> <!-- saved files are not in current schema - need to regenerate -->
  1210. <antcall target="vrtfNamespaces.xml"/>
  1211. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  1212. <arg line="-v alex"/>
  1213. <arg line="generated schema with id complete"/>
  1214. </exec>-->
  1215. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1216. <property name="p5suis:say_text" value="generated schema with id complete" />
  1217. </ant>
  1218. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1219. </sequential>
  1220. </target>
  1221. <!--<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">
  1222. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1223. <delete dir="${detect_resource_type.local}"/>
  1224. <delete dir="${transformed.local}"/>
  1225. <delete dir="${build_complexType.local}"/>
  1226. <delete dir="${p5_tr_map.local}"/>
  1227. <delete dir="${simpleSchema.local}"/>
  1228. <!-\-<exec command="make">
  1229. <arg line="clean"/>
  1230. </exec>-\->
  1231. </target>-->
  1232. <!--<target name="new-schema-with-ID-to-move-and-rename-to-xsd_test_complete">
  1233. <condition taskname="detect_objects_parent_relations_complete" property="new-schema-with-ID-to-move-and-rename-to-xsd_complete_exists">
  1234. <available file="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1235. </condition>
  1236. </target>-->
  1237. <!--<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">
  1238. <!-\-<exec command="make">
  1239. <arg line="detect_objects_parent_relations"/>
  1240. </exec>-\->
  1241. <!-\-<antcall target="build_complexType"/>
  1242. <antcall target="build_tr_map"/>
  1243. <antcall target="build_detect_resource_type"/>-\->
  1244. <!-\-<antcall target="build_simpleSchema_for_recurse_ant"/> <!-\\- to wystarczy - wyzwala sie kolejno po dependency -\\->-\->
  1245. </target>-->
  1246. <target name="sync_p5_tr_map_with_se.recomplete" description="when deleted something - use this option to try to regenerate missed">
  1247. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1248. <property name="p5suis:say_text" value="Try to regenerete deleted cache files" />
  1249. </ant>
  1250. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1251. <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
  1252. <delete file="${build_element_complexType.xml.complete}" failonerror="false"/>
  1253. <delete file="${build_tr_map.xml.complete}" failonerror="false"/>
  1254. <antcall target="sync_p5_tr_map_with_se"/>
  1255. </target>
  1256. <target name="sync_p5_tr_map_with_se.refresh" depends="build_SE.SYSTEM.build_SE.SYSTEM" description="to force delete delete.build_complexType.local after modifications of schema. Not use after crash">
  1257. <parallel failonany="true" threadCount="3">
  1258. <sequential>
  1259. <!--<exec executable="say" failifexecutionfails="false">
  1260. <arg line="-v alex"/>
  1261. <arg line="deleting all generated cached objects"/>
  1262. </exec>-->
  1263. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1264. <property name="p5suis:say_text" value="deleting all generated cached objects" />
  1265. </ant>
  1266. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1267. </sequential>
  1268. <sequential>
  1269. <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
  1270. <delete file="${build_element_complexType.xml.complete}" failonerror="false"/>
  1271. <delete file="${build_tr_map.xml.complete}" failonerror="false"/>
  1272. <delete file="${build_detect_objects_parent_relations.complete}"/>
  1273. <delete file="${build_detect_resource_type.complete}"></delete>
  1274. </sequential>
  1275. <sequential>
  1276. <antcall target="delete.build_complexType.local"/>
  1277. </sequential>
  1278. <sequential>
  1279. <antcall target="delete.detect_resource_type.local"/>
  1280. </sequential>
  1281. <sequential>
  1282. <antcall target="delete.p5_tr_map.local"/>
  1283. </sequential>
  1284. </parallel>
  1285. <sequential>
  1286. <antcall target="sync_p5_tr_map_with_se"/>
  1287. </sequential>
  1288. <sequential>
  1289. <antcall target="typespecial_to_ref.xml.clean"/>
  1290. </sequential>
  1291. <!--<exec executable="say" failifexecutionfails="false">
  1292. <arg line="-v alex"/>
  1293. <arg line="full refresh sync process 5 with SE complete"/>
  1294. </exec>-->
  1295. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue" >
  1296. <property name="p5suis:say_text" value="full refresh sync process 5 with SE complete" />
  1297. </ant>
  1298. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1299. </target>
  1300. <target name="sync_p5_tr_map_with_se" depends=" save_build_properties,read_build_properties,sync_p5_tr_map_with_se.logged.start,new-schema-with-ID-to-move-and-rename-to-xsd,build_simpleSchema_for_recurse_ant,p5_make_symlink_to_work_in_default_db.in7_dziennik_koresp,sync_p5_tr_map_with_se.logged.stop" description="syncrhonizacja wygenerowanych map z default_db.instance/p5_tr_map do SE/schema/public_instance/p5_tr_map">
  1301. <parallel failonany="true" threadCount="3">
  1302. <sequential>
  1303. <!--<exec executable="say" failifexecutionfails="false">
  1304. <arg line="-v alex"/>
  1305. <arg line="deleting all cached complexType transactions maps and parent relations. "/>
  1306. </exec>-->
  1307. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1308. <property name="p5suis:say_text" value="deleting all remote cached complexType transactions maps and parent relations. " />
  1309. </ant>
  1310. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1311. <delete dir="${p5_tr_map.remote}" failonerror="no"/>
  1312. <!--<copydir src="${p5_tr_map.local}" dest="${p5_tr_map.remote}" />-->
  1313. <mkdir dir="${p5_tr_map.remote}"/>
  1314. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1315. <property name="p5suis:say_text" value="Copying to remote all cached files" />
  1316. </ant>
  1317. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1318. <copy todir="${p5_tr_map.remote}">
  1319. <fileset dir="${p5_tr_map.local}"/>
  1320. </copy>
  1321. <delete dir="${detect_resource_type.remote}" failonerror="no"/>
  1322. <copy todir="${detect_resource_type.remote}">
  1323. <fileset dir="${detect_resource_type.local}"/>
  1324. </copy>
  1325. </sequential>
  1326. <sequential>
  1327. <delete dir="${table.remote}" failonerror="no"/>
  1328. <copy todir="${table.remote}">
  1329. <fileset dir="${table.local}"/>
  1330. </copy>
  1331. </sequential>
  1332. <sequential>
  1333. <delete dir="${build_complexType.remote}" failonerror="no"/>
  1334. <copy todir="${build_complexType.remote}">
  1335. <fileset dir="${build_complexType.local}"/>
  1336. </copy>
  1337. </sequential>
  1338. <sequential>
  1339. <delete dir="${simpleSchema.remote}" failonerror="no"/>
  1340. <copy todir="${simpleSchema.remote}">
  1341. <fileset dir="${simpleSchema.local}"/>
  1342. </copy>
  1343. </sequential>
  1344. </parallel>
  1345. </target>
  1346. <target name="sync_p5_tr_map_with_se.logged.start" >
  1347. <echo>record name="${p5build.SYSTEM.StandardOutPath}" action="start" append="true"</echo>
  1348. <echo>record name="${p5build.SYSTEM.StandardErrorPath}" action="start" append="true" loglevel="warning"</echo>
  1349. <record name="${p5build.SYSTEM.StandardOutPath}" action="start" append="false"/>
  1350. <record name="${p5build.SYSTEM.StandardErrorPath}" action="start" append="false" loglevel="warning"/>
  1351. </target>
  1352. <target name="sync_p5_tr_map_with_se.logged.stop" >
  1353. <record name="${p5build.SYSTEM.StandardOutPath}" action="stop" />
  1354. <record name="${p5build.SYSTEM.StandardErrorPath}" action="stop" />
  1355. </target>
  1356. <target name="p5_make_symlink_to_work_in_default_db.in7_dziennik_koresp" description="temporary to allow work with paths cheating and create on SE/schema/default_db.in7_dziennik_koresp symlink to ../WPS_Functions/get_wfs/ etc...">
  1357. <echo> ln -s ${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree/CRM_PROCES_tree ../../WPS_Functions/default_db/CRM_PROCES_tree</echo>
  1358. <!--<exec executable="ln" dir="${default_db.instance.xml.symlink}/CRM_PROCES_tree" >
  1359. <arg line="-s ../WPS_Functions/default_db/CRM_PROCES_tree"/>
  1360. </exec>-->
  1361. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1362. <property name="p5suis:say_text" value="Symlink extra to corespondence task - to be removed " />
  1363. </ant>
  1364. <!--<ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>-->
  1365. <symlink link="${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree" resource="../../WPS_Functions/default_db/CRM_PROCES_tree" overwrite="true"/>
  1366. <!--Cannot find /Users/a.binder/Documents/se/SE/schema/ant-url_action/build.WPS_Functions.SYSTEM.xml imported from /Users/a.binder/Documents/se/SE/schema/ant-url_action/get_wfs/build.get_wfs.SYSTEM.xml-->
  1367. <symlink link="${remote.ant-url_action}/build.WPS_Functions.SYSTEM.xml" resource="../WPS_Functions/build.WPS_Functions.SYSTEM.xml" overwrite="true"/>
  1368. <symlink link="${remote.ant-url_action}/build.WPS_Functions.PRODUCT.xml" resource="../WPS_Functions/build.WPS_Functions.PRODUCT.xml" overwrite="true"/>
  1369. <symlink link="${remote.ant-url_action}/build_WPS_Function_basedir.xml" resource="../WPS_Functions/build_WPS_Function_basedir.xml" overwrite="true"/>
  1370. <symlink link="${remote.ant-url_action}/build_WPS_Function_properties.xml" resource="../WPS_Functions/build_WPS_Function_properties.xml" overwrite="true"/>
  1371. <symlink link="${remote.ant-url_action}/username_and_pass_from_passwordBase64Basic" resource="../WPS_Functions/username_and_pass_from_passwordBase64Basic" overwrite="true"/>
  1372. <symlink link="${remote.ant-url_action}/get_wfs" resource="../WPS_Functions/get_wfs" overwrite="true"/>
  1373. </target>
  1374. <target name="p5_make_symlink_to_work_in_default_db.bi_audit_energa_rum_kontrahenci_powiazania" description="temporary to allow work with paths cheating and create on SE/schema/default_db.bi_audit_energa_rum_kontrahenci_powiazania symlink to ../WPS_Functions/get_wfs/ etc...">
  1375. <echo> ln -s ${remote.default_db.bi_audit_energa_rum_kontrahenci_powiazania}/CRM_PROCES_tree/CRM_PROCES_tree ../../WPS_Functions/default_db/CRM_PROCES_tree</echo>
  1376. <mkdir dir="${remote.default_db.bi_audit_energa_rum_kontrahenci_powiazania}"/>
  1377. <symlink link="${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree" resource="../../WPS_Functions/default_db/CRM_PROCES_tree" overwrite="true"/>
  1378. </target>
  1379. </project>