build.xml 103 KB

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