build.xml 102 KB

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