build.xml 112 KB

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