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. <echoproperties destfile="${build_properties}" />
  252. <echoproperties destfile="${build_properties.xml}" format="xml"/>
  253. </target>
  254. <!--<target name="read_build_properties_check">
  255. <!-\-<condition property="read_build_properties_check" taskname="save_build_properties" >
  256. <available file="${build_properties}"/>
  257. </condition>-\->
  258. <antcall target="save_build_properties"/>
  259. <loadproperties srcfile="${build_properties}"/>
  260. </target>-->
  261. <target name="read_build_properties">
  262. <loadproperties srcfile="${build_properties}"/>
  263. <ant antfile="${build_SE.xml}" target="save_build_properties"/>
  264. <loadproperties srcfile="${build_SE.properties}"/>
  265. </target>
  266. <target name="procesy5_system_schema.xml_if_not_exists_check" description="to be called from procesy5_system_schema.xml_if_not_exists">
  267. <echo>Debug test relative property object_modeling_basedir=${object_modeling_basedir} </echo>
  268. <condition property="procesy5_system_schema.xml_if_not_exists_check" taskname="procesy5_system_schema.xml_if_not_exists">
  269. <available file="${procesy5_system_schema.xml}"/>
  270. </condition>
  271. </target>
  272. <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">
  273. <echo>procesy5_system_schema.xml_if_not_exists we do it by antcall procesy5_system_schema.xml </echo>
  274. <antcall target="procesy5_system_schema.xml"/>
  275. </target>
  276. <target name="empty.xml" description="Builds empty.xml">
  277. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  278. </target>
  279. <target name="procesy5_system_schema.xml" depends="empty.xml" description="Generate procesy5_system_schema.xml and vrtfNamespaces.xml which can be not correct">
  280. <sleep seconds="2"/>
  281. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  282. <arg line="-v alex"/>
  283. <arg line="Generating process 5 system schema"/>
  284. </exec>-->
  285. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  286. <property name="p5suis:say_text" value="Generating process 5 system schema" />
  287. </ant>
  288. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  289. <antcall target="delete.external_schema_table.path"/>
  290. <mkdir dir="${default_db.instance.xml}"/>
  291. <mkdir dir="${transformed.local}"/>
  292. <delete file="${procesy5_system_schema.xml}" failonerror="false"/>
  293. <echo> run ${get_all_xsd.xsl} with param procesy5_system_schema_collection_dir=${basedir}; </echo>
  294. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${empty.xml}" destdir="./" out="${procesy5_system_schema.xml}" >
  295. <factory name="net.sf.saxon.TransformerFactoryImpl">
  296. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  297. <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"/>
  298. </factory>
  299. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  300. <param name="cache" expression="refresh"/>
  301. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  302. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  303. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  304. <param name="default_db.dir" expression="${default_db.dir}"/>
  305. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  306. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  307. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  308. <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}"/>
  309. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  310. <param name="basedir" expression="${basedir}"/>
  311. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  312. </xslt>
  313. <sequential>
  314. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  315. <property name="p5suis:say_text" value="analyzing process 5 schema namespaces" />
  316. </ant>
  317. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  318. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  319. <arg line="-v alex"/>
  320. <arg line="analyzing process 5 schema namespaces"/>
  321. </exec>-->
  322. <delete file="${vrtfNamespaces.xml}"/>
  323. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${vrtfNamespaces.xml}" >
  324. <factory name="net.sf.saxon.TransformerFactoryImpl">
  325. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  326. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}vrtfNamespaces"/>
  327. </factory>
  328. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  329. <param name="cache" expression="refresh"/>
  330. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  331. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  332. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  333. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  334. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  335. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  336. <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}"/>
  337. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  338. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  339. </xslt>
  340. <sleep seconds="1"/>
  341. </sequential>
  342. </target>
  343. <target name="procesy5_system_schema.xml_complete" description="Generate procesy5_system_schema.xml and vrtfNamespaces.xml which can be not correct">
  344. <sequential>
  345. <sleep seconds="2"/>
  346. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  347. <arg line="-v alex"/>
  348. <arg line="generating complete process 5 system schema"/>
  349. </exec>-->
  350. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  351. <property name="p5suis:say_text" value="generating complete process 5 system schema" />
  352. </ant>
  353. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  354. <mkdir dir="${default_db.instance.xml}"/>
  355. <mkdir dir="${transformed.local}"/>
  356. <delete file="${procesy5_system_schema.xml}" failonerror="false"/>
  357. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  358. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  359. <echo> run ${get_all_xsd.xsl} with param procesy5_system_schema_collection_dir=${basedir}; </echo>
  360. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${empty.xml}" destdir="./" out="${procesy5_system_schema.xml}" >
  361. <factory name="net.sf.saxon.TransformerFactoryImpl">
  362. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  363. <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"/>
  364. </factory>
  365. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  366. <param name="cache" expression="refresh"/>
  367. <param name="external_schema" expression="${external_schema}"/>
  368. <param name="external_schema_id_namespace_prefix" expression="${external_schema_id_namespace_prefix}"/>
  369. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  370. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  371. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  372. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  373. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  374. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  375. <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}"/>
  376. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  377. <param name="basedir" expression="${basedir}"/>
  378. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  379. </xslt>
  380. </sequential>
  381. <sleep seconds="1"/>
  382. <antcall target="vrtfNamespaces.xml"/>
  383. </target>
  384. <target name="vrtfNamespaces.xml" description="Procedure to create vrtfNamespaces.xml - used in some tasks especially in generate schema with id">
  385. <parallel threadcount="2">
  386. <sequential>
  387. <!--<exec executable="say" failifexecutionfails="false">
  388. <arg line="-v alex"/>
  389. <arg line="Generating namspaces list "/>
  390. </exec>-->
  391. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  392. <property name="p5suis:say_text" value="Generating namspaces list" />
  393. </ant>
  394. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  395. </sequential>
  396. <sequential>
  397. <delete file="${vrtfNamespaces.xml}"/>
  398. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${vrtfNamespaces.xml}" >
  399. <factory name="net.sf.saxon.TransformerFactoryImpl">
  400. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  401. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}vrtfNamespaces"/>
  402. </factory>
  403. <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
  404. <param name="cache" expression="refresh"/>
  405. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  406. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  407. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  408. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  409. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  410. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  411. <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}"/>
  412. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  413. <param name="basedir" expression="${basedir}"/>
  414. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  415. </xslt>
  416. </sequential>
  417. </parallel>
  418. </target>
  419. <target name="generate_schema_with_id" depends="procesy5_system_schema.xml" description="first we generate schema to check if all have correct ID">
  420. <!-- schema @id fixing -->
  421. <parallel threadcount="2">
  422. <sequential>
  423. <!--<sleep seconds="3"/>-->
  424. <!--<exec executable="say" failifexecutionfails="false">
  425. <arg line="-v alex"/>
  426. <arg line="Checking schema for correnct id attributes if not generating them"/>
  427. </exec>-->
  428. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  429. <property name="p5suis:say_text" value="Checking schema for correnct id attributes if not generating them" />
  430. </ant>
  431. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  432. </sequential>
  433. <sequential>
  434. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  435. <delete file="${parse_schema_to_generate_id_raport.xml}"/>
  436. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  437. <xslt basedir="./" style="${parse_schema_to_generate_id.xsl}" in="${empty.xml}" destdir="./" out="${parse_schema_to_generate_id_raport.xml}" >
  438. <factory name="net.sf.saxon.TransformerFactoryImpl">
  439. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  440. <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"/>
  441. </factory>
  442. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  443. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  444. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
  445. <param name="new-schema-with-ID-to-move-and-rename-to-xsd" expression="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  446. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  447. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  448. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  449. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  450. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  451. <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}"/>
  452. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  453. <param name="basedir" expression="${basedir}"/>
  454. <!--<param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>-->
  455. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  456. </xslt>
  457. <antcall target="p5suis.p5suis.say_to_queue.copy_file" >
  458. <param name="p5suis.say_to_queue.copy_file" value="${parse_schema_to_generate_id_raport.xml}"/>
  459. </antcall>
  460. <echo>#466 check what were missing in no-id directory</echo>
  461. <sleep seconds="3"/>
  462. </sequential>
  463. </parallel>
  464. </target>
  465. <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">
  466. <parallel threadcount="2">
  467. <sequential>
  468. <!--<exec executable="say" failifexecutionfails="false">
  469. <arg line="-v alex"/>
  470. <arg line="Generating Namespaces Binding to map models to API address"/>
  471. </exec>-->
  472. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  473. <property name="p5suis:say_text" value="Generating Namespaces Binding to map models to API address" />
  474. </ant>
  475. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  476. </sequential>
  477. <sequential>
  478. <xslt basedir="./" style="${TargetNamespaceBindings.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${NamespaceBinding.xml}.temp.xml" force="true">
  479. <factory name="net.sf.saxon.TransformerFactoryImpl">
  480. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  481. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}NamespaceBinding.xml"/>
  482. </factory>
  483. <param name="targetNamespace_DEFAULTS_prefix" expression="${targetNamespace_DEFAULTS_prefix}"/>
  484. <param name="targetNamespace_DEFAULTS_prefix_objects" expression="${targetNamespace_DEFAULTS_prefix_objects}"/>
  485. <param name="TargetNamespaceBindingsApiUrl" expression="${TargetNamespaceBindingsApiUrl}"/>
  486. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  487. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  488. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  489. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  490. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  491. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  492. <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}"/>
  493. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  494. <param name="basedir" expression="${basedir}"/>
  495. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  496. </xslt>
  497. </sequential>
  498. </parallel>
  499. </target>
  500. <target name="element_complexType.xml.single" description="SINGLE generate list of elements and Complextype to generate flat and tr_map">
  501. <parallel threadcount="2">
  502. <sequential>
  503. <!--<exec executable="say" failifexecutionfails="false">
  504. <arg line="-v alex"/>
  505. <arg line="generating xml object list from system schema to provide making multi thread build lists for complex Types and transaction maps and others "/>
  506. </exec>-->
  507. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  508. <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" />
  509. </ant>
  510. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  511. </sequential>
  512. <sequential>
  513. <delete file="${element_complexType.xml}"/>
  514. <xslt basedir="./" style="${get_all_xsd.xsl}" in="${procesy5_system_schema.xml}" destdir="./" out="${element_complexType.xml}" >
  515. <factory name="net.sf.saxon.TransformerFactoryImpl">
  516. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  517. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}element_complexType"/>
  518. </factory>
  519. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  520. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  521. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  522. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  523. <param name="debug_level_param" expression="${debug_level_param}"/>
  524. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  525. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  526. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  527. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  528. <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}"/>
  529. <param name="basedir" expression="${basedir}"/>
  530. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  531. </xslt>
  532. </sequential>
  533. </parallel>
  534. </target>
  535. <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">
  536. <!--<antcall target="element_complexType.xml.single" inheritall="yes"/>-->
  537. </target>
  538. <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">
  539. <!--<antcall target="build_element_complexType.xml.single.task" inheritall="yes"/>-->
  540. </target>
  541. <target name="build_element_complexType.xml.complete.test">
  542. <echo>testing if exist $build_element_complexType.xml.complete ${build_element_complexType.xml.complete}</echo>
  543. <!--<exec executable="say" failifexecutionfails="false">
  544. <arg line="-v alex"/>
  545. <arg line="Testing if ComplexType has beed completed?"/>
  546. </exec>-->
  547. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  548. <property name="p5suis:say_text" value="Testing if ComplexType has beed completed?" />
  549. </ant>
  550. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  551. <condition property="build_element_complexType.xml.complete.cond" taskname="build_element_complexType.xml.completel.cond">
  552. <available file="${build_element_complexType.xml.complete}"/>
  553. </condition>
  554. </target>
  555. <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"/>
  556. <target name="build_element_complexType.xml.complete.fail" unless="${build_element_complexType.xml.complete.cond}">
  557. <echo> not aviabble file $build_element_complexType.xml.complete ${build_element_complexType.xml.complete} calling to build.single</echo>
  558. <!--<exec executable="say" failifexecutionfails="false">
  559. <arg line="-v alex"/>
  560. <arg line="need to build Complex Type!"/>
  561. </exec>-->
  562. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  563. <property name="p5suis:say_text" value="need to build Complex Type!" />
  564. </ant>
  565. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  566. <antcall target="build_element_complexType.xml.single.task"/>
  567. </target>
  568. <target name="build_element_complexType.xml.complete.ok" if="${build_element_complexType.xml.complete.cond}">
  569. <echo> are complete $build_element_complexType.xml.complete ${build_element_complexType.xml.complete} calling to build.single</echo>
  570. <!--<exec executable="say" failifexecutionfails="false">
  571. <arg line="-v alex"/>
  572. <arg line="Are complete!"/>
  573. </exec>-->
  574. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  575. <property name="p5suis:say_text" value="Are complete!" />
  576. </ant>
  577. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  578. </target>
  579. <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">
  580. <parallel threadcount="2">
  581. <sequential>
  582. <!--<exec executable="say" failifexecutionfails="false">
  583. <arg line="-v alex"/>
  584. <arg line="generating multi thread build lists for complex Types "/>
  585. </exec>-->
  586. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  587. <property name="p5suis:say_text" value="generating multi thread build lists for complex Types" />
  588. </ant>
  589. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  590. </sequential>
  591. <sequential>
  592. <delete file="${build_element_complexType.xml}"/>
  593. <!--<tempfile property="build_element_complexType.xml.properties_override" prefix="build_element_complexType.xml.properties_override" suffix=".xml" destdir="${transformed.local}" deleteonexit="no"/>-->
  594. <!--<echoxml file="${build_element_complexType.xml.properties_override}" >
  595. <properties>
  596. <property name="uuid" value="PROCES_INIT_TREE_$${xpath_value}"/> <!-\- to be evaluated in child xsl/ant-\->
  597. <property name="typeName" value="default_db:PROCES_INIT"/>
  598. <property name="xpath" value="ID"/>
  599. </properties>
  600. </echoxml>-->
  601. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_element_complexType.xml}" >
  602. <factory name="net.sf.saxon.TransformerFactoryImpl">
  603. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  604. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_element_complexType.xml"/>
  605. </factory>
  606. <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
  607. <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
  608. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  609. <param name="temp" expression="/tmp"/>
  610. <param name="basedir" expression="${basedir}"/>
  611. <param name="antfile" expression=""/>
  612. <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
  613. <param name="match_child_element" expression=""/>
  614. <param name="match_child_element_property_name" expression=""/>
  615. <param name="properties.xml" expression="${build_properties.xml}"/>
  616. <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
  617. <param name="parallel" expression="1"/>
  618. <param name="threadCount" expression="${threadCount}"/>
  619. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  620. <param name="debug_level_param" expression="${debug_level_param}"/>
  621. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  622. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  623. <!--<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-->
  624. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  625. </xslt>
  626. <!--<exec executable="say" failifexecutionfails="false">
  627. <arg line="-v alex"/>
  628. <arg line="executing multi thread build for complex Types by thread count ${threadCount}"/>
  629. </exec>-->
  630. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  631. <property name="p5suis:say_text" value="executing multi thread build for complex Types by thread count ${threadCount}" />
  632. </ant>
  633. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  634. <!--<delete dir="${build_complexType.local}"/>-->
  635. <ant antfile="${build_element_complexType.xml}"/>
  636. <touch file="${build_element_complexType.xml.complete}"/>
  637. <!--<exec executable="say" failifexecutionfails="false">
  638. <arg line="-v alex"/>
  639. <arg line="generating complex types complete"/>
  640. </exec>-->
  641. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  642. <property name="p5suis:say_text" value="generating complex types complete" />
  643. </ant>
  644. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  645. </sequential>
  646. </parallel>
  647. </target>
  648. <!-- depends="element_complexType.xml,save_build_properties,empty.xml" -->
  649. <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">
  650. <!--<antcall target="build_element_complexType.xml.single.task" inheritall="yes"/> lower should exec only conditionally-->
  651. <antcall target="build_element_complexType.xml.complete.cond" inheritall="yes"/>
  652. </target>
  653. <target name="delete.build_complexType.local" description="to optionally delete all created models build_complexType.local - not needed after failure so - optionally">
  654. <delete dir="${build_complexType.local}"/>
  655. </target>
  656. <!--<target name="build_complexType" depends="element_complexType.xml" description="we generate all complexType for all known elements and complexType in schema">
  657. <delete dir="${build_complexType.local}"/>
  658. <xslt basedir="./" style="${build_complexType.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_complexType_raport.xml}" >
  659. <factory name="net.sf.saxon.TransformerFactoryImpl">
  660. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  661. <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}element_complexType"/>
  662. </factory>
  663. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  664. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  665. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  666. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  667. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  668. </xslt>
  669. </target>-->
  670. <!--depends="build_element_complexType.xml" depends="save_build_properties,read_build_properties"-->
  671. <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">
  672. <antcall target="build_tr_map.xml.single"/>
  673. </target>
  674. <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">
  675. <parallel threadcount="2">
  676. <sequential>
  677. <!--<sleep seconds="2"/>-->
  678. <!--<exec executable="say" failifexecutionfails="false">
  679. <arg line="-v alex"/>
  680. <arg line="deleting and generating transaction map by multi thread build list. To provide easy object engine calculations like creating simple schema"/>
  681. </exec>-->
  682. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  683. <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" />
  684. </ant>
  685. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  686. </sequential>
  687. <sequential>
  688. <echo> deleting build_tr_map.xml ${build_tr_map.xml} </echo>
  689. <delete file="${build_tr_map.xml}"/>
  690. <delete file="${build_tr_map.xml.complete}" failonerror="false"/>
  691. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_tr_map.xml}" >
  692. <factory name="net.sf.saxon.TransformerFactoryImpl">
  693. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  694. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_tr_map.xml"/>
  695. </factory>
  696. <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
  697. <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
  698. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  699. <param name="temp" expression="/tmp"/>
  700. <param name="basedir" expression="${basedir}"/>
  701. <param name="antfile" expression=""/>
  702. <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
  703. <param name="match_child_element" expression=""/>
  704. <param name="match_child_element_property_name" expression=""/>
  705. <param name="properties.xml" expression="${build_properties.xml}"/>
  706. <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
  707. <param name="parallel" expression="1"/>
  708. <param name="threadCount" expression="${threadCount}"/>
  709. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  710. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  711. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  712. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  713. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  714. </xslt>
  715. </sequential>
  716. </parallel>
  717. <sequential>
  718. <!--<exec executable="say" failifexecutionfails="false">
  719. <arg line="-v alex"/>
  720. <arg line="executing build transaction map list by thread count ${threadCount}"/>
  721. </exec>-->
  722. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  723. <property name="p5suis:say_text" value="executing build transaction map list by thread count ${threadCount}" />
  724. </ant>
  725. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  726. <sleep seconds="2"/>
  727. <ant antfile="${build_tr_map.xml}"/>
  728. <!--<exec executable="say" failifexecutionfails="false">
  729. <arg line="-v alex"/>
  730. <arg line="transaction map complete"/>
  731. </exec>-->
  732. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  733. <property name="p5suis:say_text" value="transaction map complete" />
  734. </ant>
  735. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  736. <touch file="${build_tr_map.xml.complete}"/>
  737. </sequential>
  738. </target>
  739. <target name="delete.p5_tr_map.local" description="to use when refresh is needed after model change">
  740. <delete dir="${p5_tr_map.local}"/>
  741. </target>
  742. <!--<target name="build_tr_map" depends="build_element_complexType.xml" description="we generate all tr_map for all known elements and complexType in schema">
  743. <delete dir="${p5_tr_map.local}"/>
  744. <xslt basedir="./" style="${p5_tr_map.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_tr_map_raport.xml}" >
  745. <factory name="net.sf.saxon.TransformerFactoryImpl">
  746. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  747. <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"/>
  748. </factory>
  749. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  750. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  751. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  752. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  753. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  754. </xslt>
  755. </target>-->
  756. <!-- depends="build_tr_map" -->
  757. <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">
  758. <antcall target="build_detect_resource_type.single"/>
  759. <!-- 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-->
  760. </target>
  761. <target name="build_detect_resource_type.xml.single.task" depends="save_build_properties,read_build_properties" description="Just build_detect_resource_type.xml elements">
  762. <parallel threadcount="2">
  763. <sequential>
  764. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  765. <arg line="-v alex"/>
  766. <arg line="generating multi thread build lists for complex resource types relations "/>
  767. </exec>-->
  768. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  769. <property name="p5suis:say_text" value="generating multi thread build lists for complex resource types relations " />
  770. </ant>
  771. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  772. </sequential>
  773. <sequential>
  774. <delete file="${build_detect_resource_type.xml}" failonerror="false"/>
  775. <delete file="${build_detect_resource_type.complete}" failonerror="false"/>
  776. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_detect_resource_type.xml}" >
  777. <factory name="net.sf.saxon.TransformerFactoryImpl">
  778. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  779. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_detect_resource_type.xml"/>
  780. </factory>
  781. <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
  782. <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
  783. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  784. <param name="temp" expression="/tmp"/>
  785. <param name="basedir" expression="${basedir}"/>
  786. <param name="antfile" expression=""/>
  787. <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
  788. <param name="match_child_element" expression=""/>
  789. <param name="match_child_element_property_name" expression=""/>
  790. <param name="properties.xml" expression="${build_properties.xml}"/>
  791. <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
  792. <param name="parallel" expression="1"/>
  793. <param name="threadCount" expression="${threadCount}"/>
  794. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  795. <param name="debug_level_param" expression="${debug_level_param}"/>
  796. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  797. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  798. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  799. <param name="detect_resource_type.xsl" expression="${detect_resource_type.xsl}"/>
  800. <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}"/>
  801. <!--<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-->
  802. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  803. </xslt>
  804. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  805. <arg line="-v alex"/>
  806. <arg line="executing multi thread build for relations by thread count ${threadCount}"/>
  807. </exec>-->
  808. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  809. <property name="p5suis:say_text" value="executing multi thread build for relations by thread count ${threadCount}" />
  810. </ant>
  811. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  812. <!--<delete dir="${build_complexType.local}"/>-->
  813. <ant antfile="${build_detect_resource_type.xml}"/>
  814. <touch file="${build_detect_resource_type.complete}"/>
  815. <!--<exec executable="say" failifexecutionfails="false">
  816. <arg line="-v alex"/>
  817. <arg line="generating relations types complete"/>
  818. </exec>-->
  819. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  820. <property name="p5suis:say_text" value="generating relations types complete" />
  821. </ant>
  822. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  823. </sequential>
  824. </parallel>
  825. </target>
  826. <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">
  827. <antcall target="build_detect_resource_type.xml.single.task"/>
  828. <!-- todo -->
  829. <!--<delete file="${build_detect_resource_type.xml}"/>
  830. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_detect_resource_type.xml}" >
  831. <factory name="net.sf.saxon.TransformerFactoryImpl">
  832. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  833. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_detect_resource_type.xml"/>
  834. </factory>
  835. <!-\-<param name="match_root_element" expression="wfs:FeatureCollection"/>-\->
  836. <param name="match_element" expression=""/><!-\- To be set universally to another type of object tree -\->
  837. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  838. <param name="temp" expression="/tmp"/>
  839. <param name="basedir" expression="${basedir}"/>
  840. <param name="antfile" expression=""/>
  841. <!-\-<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-\->
  842. <param name="match_child_element" expression=""/>
  843. <param name="match_child_element_property_name" expression=""/>
  844. <param name="properties.xml" expression="${build_properties.xml}"/>
  845. <!-\-<param name="properties_override.xml" expression="${properties_override.xml}"/>-\->
  846. <param name="parallel" expression="1"/>
  847. <param name="threadCount" expression="${threadCount}"/>
  848. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  849. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  850. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  851. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  852. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  853. </xslt>
  854. <ant antfile="${build_detect_resource_type.xml}"/>-->
  855. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  856. <arg line="-v alex"/>
  857. <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"/>
  858. </exec>
  859. <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
  860. <delete file="${detect_resource_type.xml}"/>
  861. <xslt basedir="./" style="${detect_resource_type.xsl}" in="${empty.xml}" destdir="./" out="${detect_resource_type.xml}" force="yes" >
  862. <factory name="net.sf.saxon.TransformerFactoryImpl">
  863. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  864. <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"/>
  865. </factory>
  866. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  867. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  868. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  869. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  870. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
  871. <param name="NamespaceBinding.xml" expression="${NamespaceBinding.xml}"/> <!-\- todo for better handle DefaultObjects etc -\->
  872. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  873. <param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  874. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  875. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  876. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  877. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  878. </xslt>
  879. <exec executable="say" spawn="true" failifexecutionfails="false">
  880. <arg line="-v alex"/>
  881. <arg line="complete build detect resource type single"/>
  882. </exec>-->
  883. <!-- 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-->
  884. </target>
  885. <!-- depends="build_detect_resource_type" -->
  886. <target name="build_detect_objects_parent_relations" depends="build_detect_resource_type" description="we generate detect resources parent relations -to dir detect_resource_type ">
  887. <antcall target="build_detect_objects_parent_relations.single"/>
  888. <!--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-->
  889. </target>
  890. <target name="detect_resource_type.xml.test">
  891. <echo>testing if exist $detect_resource_type.xml</echo>
  892. <condition property="build_detect_resource_type.complete.cond" taskname="detect_resource_type.xml.cond">
  893. <available file="${build_detect_resource_type.complete}"/>
  894. </condition>
  895. </target>
  896. <target name="detect_resource_type.xml.cond" depends="detect_resource_type.xml.test,detect_resource_type.xml.fail"/>
  897. <target name="detect_resource_type.xml.fail" unless="${build_detect_resource_type.complete.cond}">
  898. <echo> not aviabble file $build_detect_resource_type.complete ${build_detect_resource_type.complete} calling to build.single</echo>
  899. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  900. <arg line="-v alex"/>
  901. <arg line="need to generate detect resource type xml"/>
  902. </exec>-->
  903. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  904. <property name="p5suis:say_text" value="need to generate detect resource type xml" />
  905. </ant>
  906. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  907. <antcall target="build_detect_resource_type.single"/>
  908. </target>
  909. <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 ">
  910. <parallel threadcount="2">
  911. <sequential>
  912. <!--<exec executable="say" failifexecutionfails="false">
  913. <arg line="-v alex"/>
  914. <arg line="generating detect_object_parent_relations_single with distinct object definitions in detect_resource_type directory."/>
  915. </exec>-->
  916. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  917. <property name="p5suis:say_text" value="generating detect_object_parent_relations_single with distinct object definitions in detect_resource_type directory." />
  918. </ant>
  919. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  920. </sequential>
  921. <sequential>
  922. <delete file="${detect_objects_parent_relations.xml}"/>
  923. <xslt basedir="./" style="${detect_objects_parent_relations.xsl}" in="${empty.xml}" destdir="./" out="${detect_objects_parent_relations.xml}" force="yes" >
  924. <factory name="net.sf.saxon.TransformerFactoryImpl">
  925. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  926. <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"/>
  927. </factory>
  928. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  929. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  930. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  931. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  932. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>
  933. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  934. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  935. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  936. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  937. <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}"/>
  938. <param name="basedir" expression="${basedir}"/>
  939. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  940. </xslt>
  941. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  942. <arg line="-v alex"/>
  943. <arg line="complete build detect objects parent relations single"/>
  944. </exec>-->
  945. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  946. <property name="p5suis:say_text" value="complete build detect objects parent relations single" />
  947. </ant>
  948. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  949. </sequential>
  950. </parallel>
  951. <!--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-->
  952. </target>
  953. <!--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 ">
  954. <parallel threadcount="2">
  955. <sequential>
  956. <exec executable="say" spawn="true" failifexecutionfails="false">
  957. <arg line="-v alex"/>
  958. <arg line="generating multi thread build lists for detect parent relations "/>
  959. </exec>
  960. </sequential>
  961. <sequential>
  962. <delete file="${build_detect_objects_parent_relations.xml}" failonerror="false"/>
  963. <delete file="${build_detect_objects_parent_relations.complete}" failonerror="false"/>
  964. <mkdir dir="${detect_objects_parent_relations.local}"/>
  965. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_detect_objects_parent_relations.xml}" >
  966. <factory name="net.sf.saxon.TransformerFactoryImpl">
  967. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  968. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_detect_objects_parent_relations.xml"/>
  969. </factory>
  970. <!-\-<param name="match_root_element" expression="wfs:FeatureCollection"/>-\->
  971. <param name="match_element" expression=""/><!-\- To be set universally to another type of object tree -\->
  972. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  973. <param name="temp" expression="/tmp"/>
  974. <param name="basedir" expression="${basedir}"/>
  975. <param name="antfile" expression=""/>
  976. <!-\-<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-\->
  977. <param name="match_child_element" expression=""/>
  978. <param name="match_child_element_property_name" expression=""/>
  979. <param name="properties.xml" expression="${build_properties.xml}"/>
  980. <!-\-<param name="properties_override.xml" expression="${properties_override.xml}"/>-\->
  981. <param name="parallel" expression="1"/>
  982. <param name="threadCount" expression="${threadCount}"/>
  983. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  984. <param name="debug_level_param" expression="${debug_level_param}"/>
  985. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  986. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  987. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  988. <param name="detect_resource_type.xsl" expression="${detect_resource_type.xsl}"/>
  989. <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}"/>
  990. <!-\-<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-\->
  991. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  992. </xslt>
  993. <exec executable="say" spawn="true" failifexecutionfails="false">
  994. <arg line="-v alex"/>
  995. <arg line="executing multi thread build for relations by thread count ${threadCount}"/>
  996. </exec>
  997. <!-\-<delete dir="${build_complexType.local}"/>-\->
  998. <ant antfile="${build_detect_objects_parent_relations.xml}"/>
  999. <touch file="${build_detect_objects_parent_relations.complete}"/>
  1000. <exec executable="say" failifexecutionfails="false">
  1001. <arg line="-v alex"/>
  1002. <arg line="generating relations types complete"/>
  1003. </exec>
  1004. </sequential>
  1005. </parallel>
  1006. </target>-->
  1007. <target name="delete.detect_resource_type.local" description="to optionaly delete all p5_tr_map - not use when crashed">
  1008. <delete dir="${detect_resource_type.local}"/>
  1009. </target>
  1010. <target name="detect_objects_parent_relations.xml.test" description="to detect if created ${detect_objects_parent_relations.xml}">
  1011. <condition property="detect_objects_parent_relations.xml.cond" taskname="detect_objects_parent_relations.xml.cond">
  1012. <available file="${detect_objects_parent_relations.xml}"/>
  1013. </condition>
  1014. </target>
  1015. <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}"/>
  1016. <target name="detect_objects_parent_relations.xml.fail" unless="${detect_objects_parent_relations.xml.cond}" >
  1017. <echo> not aviable $detect_objects_parent_relations.xml ${detect_objects_parent_relations.xml} generating single </echo>
  1018. <antcall target="build_detect_objects_parent_relations.single"/>
  1019. </target>
  1020. <!-- depends="build_detect_objects_parent_relations" depends="save_build_properties,read_build_properties" -->
  1021. <target name="build_simpleSchema_for_recurse_ant.single" depends="save_build_properties,read_build_properties">
  1022. <parallel threadcount="2">
  1023. <sequential>
  1024. <!--<exec executable="say" failifexecutionfails="false">
  1025. <arg line="-v alex"/>
  1026. <arg line="deleting and generating simple schema to provide easy object access by wfs filters"/>
  1027. </exec>-->
  1028. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1029. <property name="p5suis:say_text" value="deleting and generating simple schema to provide easy object access by wfs filters" />
  1030. </ant>
  1031. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1032. </sequential>
  1033. <sequential>
  1034. <delete dir="${simpleSchema.local}"/>
  1035. <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
  1036. <!--<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">
  1037. <factory name="net.sf.saxon.TransformerFactoryImpl">
  1038. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  1039. <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"/>
  1040. </factory>
  1041. <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
  1042. <param name="default_db.instance.xml.symlink" expression="${default_db.instance.xml.symlink}"/>
  1043. <!-\-<param name="vrtfNamespaces_file" expression="${vrtfNamespaces.xml}"/>
  1044. <param name="procesy5_system_schema_file" expression="${procesy5_system_schema.xml}"/>
  1045. <param name="targetNamespace_DEFAULTS" expression="${targetNamespace_DEFAULTS}"/>-\->
  1046. <param name="namespace_prefix" expression="${targetNamespace_DEFAULTS_prefix}"/>
  1047. <param name="detect_resource_type_dir" expression="${detect_resource_type.local}"/>
  1048. <param name="build_complexType_dir" expression="${build_complexType.local}"/>
  1049. <param name="simpleSchema_dir" expression="${simpleSchema.local}"/>
  1050. <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
  1051. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  1052. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  1053. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  1054. <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}"/>
  1055. <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
  1056. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  1057. </xslt>-->
  1058. <antcall target="build_simpleSchema_for_recurse_ant.single.task"/>
  1059. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  1060. <arg line="-v alex"/>
  1061. <arg line="complete build simpleSchema for recurse ant single"/>
  1062. </exec>-->
  1063. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1064. <property name="p5suis:say_text" value="complete build simpleSchema for recurse ant single" />
  1065. </ant>
  1066. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1067. </sequential>
  1068. </parallel>
  1069. </target>
  1070. <target name="build_simpleSchema_for_recurse_ant.single.task" depends="save_build_properties,read_build_properties" description="Build simple Schema by multithread ">
  1071. <parallel threadcount="2">
  1072. <sequential>
  1073. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  1074. <arg line="-v alex"/>
  1075. <arg line="generating multi thread build lists for complex resource types relations "/>
  1076. </exec>-->
  1077. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1078. <property name="p5suis:say_text" value="generating multi thread build lists for Simple Schema " />
  1079. </ant>
  1080. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1081. </sequential>
  1082. <sequential>
  1083. <delete file="${build_SimpleSchema.xml}" failonerror="false"/>
  1084. <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
  1085. <xslt basedir="./" style="${build_ant_universal_by_xsl_match.xsl}" in="${element_complexType.xml}" destdir="./" out="${build_SimpleSchema.xml}" >
  1086. <factory name="net.sf.saxon.TransformerFactoryImpl">
  1087. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  1088. <attribute name="http://saxon.sf.net/feature/initialMode" value="build_SimpleSchema.xml"/>
  1089. </factory>
  1090. <!--<param name="match_root_element" expression="wfs:FeatureCollection"/>-->
  1091. <param name="match_element" expression=""/><!-- To be set universally to another type of object tree -->
  1092. <param name="antfile_prefix" expression="build_element_complexType.xml"/>
  1093. <param name="temp" expression="/tmp"/>
  1094. <param name="basedir" expression="${basedir}"/>
  1095. <param name="antfile" expression=""/>
  1096. <!--<param name="target" expression="xml_recursed_from_tr_map_with_RelatedFeatureLoop"/>-->
  1097. <param name="match_child_element" expression=""/>
  1098. <param name="match_child_element_property_name" expression=""/>
  1099. <param name="properties.xml" expression="${build_properties.xml}"/>
  1100. <!--<param name="properties_override.xml" expression="${properties_override.xml}"/>-->
  1101. <param name="parallel" expression="1"/>
  1102. <param name="threadCount" expression="${threadCount}"/>
  1103. <param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
  1104. <param name="debug_level_param" expression="${debug_level_param}"/>
  1105. <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
  1106. <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
  1107. <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
  1108. <param name="detect_resource_type.xsl" expression="${detect_resource_type.xsl}"/>
  1109. <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}"/>
  1110. <!--<param name="external_schema_table.path" expression="${external_schema_table.path}"/>-->
  1111. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  1112. </xslt>
  1113. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  1114. <arg line="-v alex"/>
  1115. <arg line="executing multi thread build for relations by thread count ${threadCount}"/>
  1116. </exec>-->
  1117. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1118. <property name="p5suis:say_text" value="executing multi thread build for Simple Schema by thread count ${threadCount}" />
  1119. </ant>
  1120. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1121. <!--<delete dir="${build_complexType.local}"/>-->
  1122. <ant antfile="${build_SimpleSchema.xml}"/>
  1123. <touch file="${build_simpleSchema_for_recurse_ant.single.complete}"/>
  1124. <!--<exec executable="say" failifexecutionfails="false">
  1125. <arg line="-v alex"/>
  1126. <arg line="generating relations types complete"/>
  1127. </exec>-->
  1128. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1129. <property name="p5suis:say_text" value="generating Simple Schema complete" />
  1130. </ant>
  1131. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1132. </sequential>
  1133. </parallel>
  1134. </target>
  1135. <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">
  1136. <antcall target="build_simpleSchema_for_recurse_ant.single"/>
  1137. <touch file="${build_simpleSchema_for_recurse_ant.single.complete}"/>
  1138. </target>
  1139. <!--<target name="generate_ant_data_business_modules" description="generate modules specified in "/>
  1140. <target name="read_db_structure" description="we read db structure to than analyze it against missing or not correct fields/tables/indexes "/>
  1141. <target name="modify_uncorrect_structure" description="we add missing structure fields/tables/indexes "/>
  1142. <target name="add_missing_structure" description="we add missing structure fields/tables/indexes "/>
  1143. <target name="read_installed_business_objects" description="we read current installed business_objects to verify to update them (version)"/>
  1144. <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"/>
  1145. <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 "/>
  1146. -->
  1147. <target name="detect_objects_parent_relations_clean" description="piewsze czyszczenie - pewnie nie ma @id">
  1148. <!--<exec command="make">
  1149. <arg line="clean"/>
  1150. </exec>-->
  1151. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1152. <delete dir="${detect_resource_type.local}"/>
  1153. <delete dir="${transformed.local}"/>
  1154. <delete dir="${build_complexType.local}"/>
  1155. <delete dir="${p5_tr_map.local}"/>
  1156. <delete dir="${simpleSchema.local}" />
  1157. </target>
  1158. <!--<target name="detect_objects_parent_relations" depends="detect_objects_parent_relations_clean" description="pierwsze szukanie relacji - moga nie miec @id">
  1159. <!-\-<exec command="make" failifexecutionfails="no">
  1160. <arg line="detect_objects_parent_relations"/>
  1161. </exec>-\->
  1162. <antcall target="build_complexType"/>
  1163. <antcall target="build_tr_map"/>
  1164. <antcall target="build_detect_resource_type"/>
  1165. </target>-->
  1166. <target depends="generate_schema_with_id" name="new-schema-with-ID-to-move-and-rename-to-xsd_test">
  1167. <condition taskname="new-schema-with-ID-to-move-and-rename-to-xsd" property="new-schema-with-ID-to-move-and-rename-to-xsd_exists">
  1168. <available file="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1169. </condition>
  1170. </target>
  1171. <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">
  1172. <delete dir="${external_schema_table.path}" failonerror="false"/>
  1173. </target>
  1174. <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" />
  1175. <target name="new-schema-with-ID-to-move-and-rename-to-xsd.if_not_complete.test">
  1176. <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">
  1177. <available file="${procesy5_system_schema.complete}"/>
  1178. </condition>
  1179. </target>
  1180. <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}" />
  1181. <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}">
  1182. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1183. <property name="p5suis:say_text" value="need to generate schema with id" />
  1184. </ant>
  1185. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1186. </target>
  1187. <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}"/>
  1188. <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}">
  1189. <parallel failonany="true" threadCount="2">
  1190. <sequential>
  1191. <!--<exec executable="say" failifexecutionfails="false">
  1192. <arg line="-v alex"/>
  1193. <arg line="need to generate schema with id"/>
  1194. </exec>-->
  1195. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1196. <property name="p5suis:say_text" value="need to generate schema with id" />
  1197. </ant>
  1198. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1199. </sequential>
  1200. <sequential>
  1201. <copy todir="${basedir}">
  1202. <fileset dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1203. </copy>
  1204. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1205. </sequential>
  1206. </parallel>
  1207. <sequential>
  1208. <antcall target="procesy5_system_schema.xml"/> <!-- saved files are not in current schema - need to regenerate -->
  1209. <antcall target="vrtfNamespaces.xml"/>
  1210. <!--<exec executable="say" spawn="true" failifexecutionfails="false">
  1211. <arg line="-v alex"/>
  1212. <arg line="generated schema with id complete"/>
  1213. </exec>-->
  1214. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1215. <property name="p5suis:say_text" value="generated schema with id complete" />
  1216. </ant>
  1217. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1218. </sequential>
  1219. </target>
  1220. <!--<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">
  1221. <delete dir="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1222. <delete dir="${detect_resource_type.local}"/>
  1223. <delete dir="${transformed.local}"/>
  1224. <delete dir="${build_complexType.local}"/>
  1225. <delete dir="${p5_tr_map.local}"/>
  1226. <delete dir="${simpleSchema.local}"/>
  1227. <!-\-<exec command="make">
  1228. <arg line="clean"/>
  1229. </exec>-\->
  1230. </target>-->
  1231. <!--<target name="new-schema-with-ID-to-move-and-rename-to-xsd_test_complete">
  1232. <condition taskname="detect_objects_parent_relations_complete" property="new-schema-with-ID-to-move-and-rename-to-xsd_complete_exists">
  1233. <available file="${new-schema-with-ID-to-move-and-rename-to-xsd}"/>
  1234. </condition>
  1235. </target>-->
  1236. <!--<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">
  1237. <!-\-<exec command="make">
  1238. <arg line="detect_objects_parent_relations"/>
  1239. </exec>-\->
  1240. <!-\-<antcall target="build_complexType"/>
  1241. <antcall target="build_tr_map"/>
  1242. <antcall target="build_detect_resource_type"/>-\->
  1243. <!-\-<antcall target="build_simpleSchema_for_recurse_ant"/> <!-\\- to wystarczy - wyzwala sie kolejno po dependency -\\->-\->
  1244. </target>-->
  1245. <target name="sync_p5_tr_map_with_se.recomplete" description="when deleted something - use this option to try to regenerate missed">
  1246. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1247. <property name="p5suis:say_text" value="Try to regenerete deleted cache files" />
  1248. </ant>
  1249. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1250. <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
  1251. <delete file="${build_element_complexType.xml.complete}" failonerror="false"/>
  1252. <delete file="${build_tr_map.xml.complete}" failonerror="false"/>
  1253. <antcall target="sync_p5_tr_map_with_se"/>
  1254. </target>
  1255. <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">
  1256. <parallel failonany="true" threadCount="3">
  1257. <sequential>
  1258. <!--<exec executable="say" failifexecutionfails="false">
  1259. <arg line="-v alex"/>
  1260. <arg line="deleting all generated cached objects"/>
  1261. </exec>-->
  1262. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1263. <property name="p5suis:say_text" value="deleting all generated cached objects" />
  1264. </ant>
  1265. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1266. </sequential>
  1267. <sequential>
  1268. <delete file="${build_simpleSchema_for_recurse_ant.single.complete}" failonerror="false"/>
  1269. <delete file="${build_element_complexType.xml.complete}" failonerror="false"/>
  1270. <delete file="${build_tr_map.xml.complete}" failonerror="false"/>
  1271. <delete file="${build_detect_objects_parent_relations.complete}"/>
  1272. <delete file="${build_detect_resource_type.complete}"></delete>
  1273. </sequential>
  1274. <sequential>
  1275. <antcall target="delete.build_complexType.local"/>
  1276. </sequential>
  1277. <sequential>
  1278. <antcall target="delete.detect_resource_type.local"/>
  1279. </sequential>
  1280. <sequential>
  1281. <antcall target="delete.p5_tr_map.local"/>
  1282. </sequential>
  1283. </parallel>
  1284. <sequential>
  1285. <antcall target="sync_p5_tr_map_with_se"/>
  1286. </sequential>
  1287. <sequential>
  1288. <antcall target="typespecial_to_ref.xml.clean"/>
  1289. </sequential>
  1290. <!--<exec executable="say" failifexecutionfails="false">
  1291. <arg line="-v alex"/>
  1292. <arg line="full refresh sync process 5 with SE complete"/>
  1293. </exec>-->
  1294. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue" >
  1295. <property name="p5suis:say_text" value="full refresh sync process 5 with SE complete" />
  1296. </ant>
  1297. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1298. </target>
  1299. <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">
  1300. <parallel failonany="true" threadCount="3">
  1301. <sequential>
  1302. <!--<exec executable="say" failifexecutionfails="false">
  1303. <arg line="-v alex"/>
  1304. <arg line="deleting all cached complexType transactions maps and parent relations. "/>
  1305. </exec>-->
  1306. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1307. <property name="p5suis:say_text" value="deleting all remote cached complexType transactions maps and parent relations. " />
  1308. </ant>
  1309. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1310. <delete dir="${p5_tr_map.remote}" failonerror="no"/>
  1311. <!--<copydir src="${p5_tr_map.local}" dest="${p5_tr_map.remote}" />-->
  1312. <mkdir dir="${p5_tr_map.remote}"/>
  1313. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1314. <property name="p5suis:say_text" value="Copying to remote all cached files" />
  1315. </ant>
  1316. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  1317. <copy todir="${p5_tr_map.remote}">
  1318. <fileset dir="${p5_tr_map.local}"/>
  1319. </copy>
  1320. <delete dir="${detect_resource_type.remote}" failonerror="no"/>
  1321. <copy todir="${detect_resource_type.remote}">
  1322. <fileset dir="${detect_resource_type.local}"/>
  1323. </copy>
  1324. </sequential>
  1325. <sequential>
  1326. <delete dir="${table.remote}" failonerror="no"/>
  1327. <copy todir="${table.remote}">
  1328. <fileset dir="${table.local}"/>
  1329. </copy>
  1330. </sequential>
  1331. <sequential>
  1332. <delete dir="${build_complexType.remote}" failonerror="no"/>
  1333. <copy todir="${build_complexType.remote}">
  1334. <fileset dir="${build_complexType.local}"/>
  1335. </copy>
  1336. </sequential>
  1337. <sequential>
  1338. <delete dir="${simpleSchema.remote}" failonerror="no"/>
  1339. <copy todir="${simpleSchema.remote}">
  1340. <fileset dir="${simpleSchema.local}"/>
  1341. </copy>
  1342. </sequential>
  1343. </parallel>
  1344. </target>
  1345. <target name="sync_p5_tr_map_with_se.logged.start" >
  1346. <echo>record name="${p5build.SYSTEM.StandardOutPath}" action="start" append="true"</echo>
  1347. <echo>record name="${p5build.SYSTEM.StandardErrorPath}" action="start" append="true" loglevel="warning"</echo>
  1348. <record name="${p5build.SYSTEM.StandardOutPath}" action="start" append="false"/>
  1349. <record name="${p5build.SYSTEM.StandardErrorPath}" action="start" append="false" loglevel="warning"/>
  1350. </target>
  1351. <target name="sync_p5_tr_map_with_se.logged.stop" >
  1352. <record name="${p5build.SYSTEM.StandardOutPath}" action="stop" />
  1353. <record name="${p5build.SYSTEM.StandardErrorPath}" action="stop" />
  1354. </target>
  1355. <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...">
  1356. <echo> ln -s ${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree/CRM_PROCES_tree ../../WPS_Functions/default_db/CRM_PROCES_tree</echo>
  1357. <!--<exec executable="ln" dir="${default_db.instance.xml.symlink}/CRM_PROCES_tree" >
  1358. <arg line="-s ../WPS_Functions/default_db/CRM_PROCES_tree"/>
  1359. </exec>-->
  1360. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  1361. <property name="p5suis:say_text" value="Symlink extra to corespondence task - to be removed " />
  1362. </ant>
  1363. <!--<ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>-->
  1364. <symlink link="${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree" resource="../../WPS_Functions/default_db/CRM_PROCES_tree" overwrite="true"/>
  1365. <!--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-->
  1366. <symlink link="${remote.ant-url_action}/build.WPS_Functions.SYSTEM.xml" resource="../WPS_Functions/build.WPS_Functions.SYSTEM.xml" overwrite="true"/>
  1367. <symlink link="${remote.ant-url_action}/build.WPS_Functions.PRODUCT.xml" resource="../WPS_Functions/build.WPS_Functions.PRODUCT.xml" overwrite="true"/>
  1368. <symlink link="${remote.ant-url_action}/build_WPS_Function_basedir.xml" resource="../WPS_Functions/build_WPS_Function_basedir.xml" overwrite="true"/>
  1369. <symlink link="${remote.ant-url_action}/build_WPS_Function_properties.xml" resource="../WPS_Functions/build_WPS_Function_properties.xml" overwrite="true"/>
  1370. <symlink link="${remote.ant-url_action}/username_and_pass_from_passwordBase64Basic" resource="../WPS_Functions/username_and_pass_from_passwordBase64Basic" overwrite="true"/>
  1371. <symlink link="${remote.ant-url_action}/get_wfs" resource="../WPS_Functions/get_wfs" overwrite="true"/>
  1372. </target>
  1373. <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...">
  1374. <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>
  1375. <mkdir dir="${remote.default_db.bi_audit_energa_rum_kontrahenci_powiazania}"/>
  1376. <symlink link="${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree" resource="../../WPS_Functions/default_db/CRM_PROCES_tree" overwrite="true"/>
  1377. </target>
  1378. </project>