build.xml 102 KB

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