build.xml 104 KB

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