build.xml 113 KB

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