build_WPS_Functions.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
  3. basedir="../."
  4. name="WPS_Functions">
  5. <include file="build.WPS_Functions.PRODUCT.xml"/>
  6. <!-- TODO config/licence/to handle params - in procesy5 there is SE/schema/WPS_Functions folder - so we need to tell it is in one more root folder ../-->
  7. <!-- parent properties -->
  8. <!--<property name="build_root.xml" location="${basedir}/build.xml"/>-->
  9. <!--<property name="build_properties" location="${basedir}/.build_properties"/>-->
  10. <!-- in some modules needed - to be removed -->
  11. <!-- modules WPS_Functions - to be copied to any module needed -->
  12. <!--<property name="WPS_Functions.temp" location="${WPS_Functions}/temp"/>-->
  13. <!-- eof modules WPS_Functions -->
  14. <!-- TODO combinated object combinate_objects_for_instance_prototypes.xsl -->
  15. <!-- <property name="combinate_objects_for_instance_prototypes.xsl"
  16. location="${basedir}/default_db_xml_cache/combinate_objects_for_instance_prototypes.xsl"/>
  17. <!-\- modules properties copied / controlled references -\->
  18. <property name="object_install_se_ant_object"
  19. location="${basedir}/WPS_Functions/object_install_se_ant_object/build_object_install_se_ant_object.xml"/>
  20. <property name="object_modeling_basedir"
  21. location="${basedir}/WPS_Functions/object_modeling"/>
  22. <property name="object_modeling_build"
  23. location="${object_modeling_basedir}/build_object_modeling.xml"/>
  24. <property name="object_modeling_new_basedir"
  25. location="${basedir}/WPS_Functions/object_modeling_new"/>
  26. <property name="object_modeling_by_default_db_xml_schema_basedir"
  27. location="${basedir}/WPS_Functions/object_modeling_by_default_db_xml_schema"/>
  28. <property name="default_db:recurse_ant_basedir"
  29. location="${basedir}/WPS_Functions/default_db/recurse_ant"/>
  30. <!-\-<property name="default_db:recurse_ant_basedir.temp" value="${default_db:recurse_ant_basedir}/temp/${uuid}"/>-\->
  31. <property name="default_db:recurse_ant_basedir.out"
  32. location="${default_db:recurse_ant_basedir}/out"/>
  33. <property name="default_db:recurse_ant_basedir.recurse_cache"
  34. location="${default_db:recurse_ant_basedir}/recurse_cache"/>
  35. <!-\- @2017-06-22 cache plan -\->
  36. <property name="default_db:recurse_ant"
  37. value="${default_db:recurse_ant_basedir}/build_recurse_ant.xml"/>
  38. <property name="build_recurse_ant_cache_control.xsl"
  39. location="${basedir}/default_db_xml_cache.public/build_recurse_ant_cache_control.xsl"/>
  40. <property name="get_wfs_basedir" location="${basedir}/WPS_Functions/get_wfs"/>
  41. <!-\- to ordinary retrieve wfs data -\->
  42. <property name="get_wfs_basedir.temp" location="${get_wfs_basedir}/temp"/>
  43. <property name="get_wfs" location="${get_wfs_basedir}/build_get_wfs.xml"/>
  44. <!-\- to ordinary retrieve wfs data -\->
  45. <property name="object_modeling_build_infrastructure"
  46. location="${basedir}/WPS_Functions/object_modeling_build_infrastructure/build_object_modeling_build_infrastructure.xml"/>
  47. <property name="object_modeling_new"
  48. location="${basedir}/WPS_Functions/object_modeling_new/build_object_modeling_new.xml"/>
  49. <property name="object_modeling_new.xsl"
  50. location="${basedir}/default_db_xml_cache.public/object_modeling_new.xsl"/>
  51. <property name="object_modeling.xsl"
  52. location="${basedir}/default_db_xml_cache.public/object_modeling.xsl"/>
  53. <property name="object_modeling_new_by_xml_schema.xsl"
  54. location="${basedir}/default_db_xml_cache.public/object_modeling_new_by_xml_schema.xsl"/>
  55. <property name="build_CRM_PROCES_tree"
  56. location="${WPS_Functions}/default_db/CRM_PROCES_tree/build_CRM_PROCES_tree.xml"/>
  57. <property name="build_check_java_process_count.xml"
  58. location="${basedir}/WPS_Functions/default_db/check_java_process_count/build_check_java_process_count.xml"/>
  59. <!-\- will set output current max process in STDOUT - by using with ps ax|grep ant-launcher |wc -l -\->
  60. <property name="mapserver_gml_to_png"
  61. location="${basedir}/WPS_Functions/mapserver_gml_to_png/build_mapserver_gml_to_png.xml"/>
  62. <property name="mapserver_gml_to_png_basedir"
  63. location="${basedir}/WPS_Functions/mapserver_gml_to_png"/>
  64. <property name="mapserver_gml_to_png_basedir.temp"
  65. location="${mapserver_gml_to_png_basedir}/temp"/>
  66. <property name="graph_gnuplot"
  67. location="${basedir}/WPS_Functions/graph_gnuplot/build_graph_gnuplot.xml"/>
  68. <property name="graph_gnuplot_basedir"
  69. location="${basedir}/WPS_Functions/graph_gnuplot"/>
  70. <property name="graph_gnuplot_basedir.temp"
  71. location="${graph_gnuplot_basedir}/temp"/>
  72. <property name="BI_audit" location="${WPS_Functions}/build_BI_audit.xml"/>
  73. <property name="postprocess.xsl"
  74. location="${basedir}/default_db_xml_cache.public/system_cache__appinfo/postprocess.xsl"/>
  75. <property name="build_object_modeling_by_default_db_xml_schema.xml"
  76. location="${WPS_Functions}/object_modeling_by_default_db_xml_schema/build_object_modeling_by_default_db_xml_schema.xml"/>
  77. <property name="get_wfs_recurse_xsl.xsl"
  78. location="${basedir}/default_db_xml_cache.public/get_wfs_recurse_xsl.xsl"/>
  79. <property name="build_get_wfs_recurse_xsl"
  80. location="${WPS_Functions}/get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml"/>
  81. <property name="build_csv2xml.local_path" location="WPS_Functions/csv2xml"/>
  82. <!-\- To be implemented in other modules to install xsl stylesheets correctly -\->
  83. <property name="build_csv2xml"
  84. location="${basedir}/${build_csv2xml.local_path}/build_csv2xml.xml"/>
  85. <property name="csv2xml" location="/opt/local/bin/csv2xml"/>
  86. <property name="build_qgis_make_user_style.xml"
  87. location="${WPS_Functions}/default_db/qgis_make_user_style/build_qgis_make_user_style.xml"/>
  88. <property name="build_qgis_make_user_style.xsl"
  89. location="${WPS_Functions}/default_db/qgis_make_user_style/build_qgis_make_user_style.xsl"/>
  90. <property name="build_username_and_pass_from_passwordBase64Basic.xml"
  91. location="${WPS_Functions}/username_and_pass_from_passwordBase64Basic/build_username_and_pass_from_passwordBase64Basic.xml"/>
  92. <property name="system_ui_info_speech"
  93. location="${basedir}/WPS_Functions/system_ui_info_speech/build_system_ui_info_speech.xml"/>-->
  94. <!--<!-\-to say something manager: typical tasks:-\->
  95. <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
  96. <property name="p5suis:say_text" value="some text to say" />
  97. </ant>
  98. <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
  99. or to Polish
  100. ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue.PL">
  101. <property name="p5suis:say_text" value="some text to say" />
  102. </ant>
  103. <!-\- and after that always-\->
  104. -->
  105. <!-- EOF modules properties copied / controlled references -->
  106. <!-- <property name="wfs_output.xml" value="${get_wfs_basedir.temp}/${uuid}.wfs_output.xml"/>
  107. <property name="wfs_result.xml" value="${get_wfs_basedir.temp}/${uuid}.wfs_result.xml"/>
  108. <property name="wfs_error.xml" value="${get_wfs_basedir.temp}/${uuid}.wfs_error.xml"/>
  109. <property name="wfs_timestamp.xml" value="${get_wfs_basedir.temp}/${uuid}.wfs_timestamp.xml"/>
  110. -->
  111. <target name="create_tempdir">
  112. <mkdir dir="${WPS_Functions.childproperties}"/>
  113. <mkdir dir="${WPS_Functions.temp}"/>
  114. <mkdir dir="${WPS_Functions.repository}"/>
  115. </target>
  116. <target name="read_build_properties.childproperties"
  117. depends="create_tempdir, save_build_properties,read_WPS_Functions.childproperties.builds"
  118. description="To read child modules installed properties">
  119. <concat destfile="${build_WPS_Functions.xml.properties}"
  120. fixlastline="true"
  121. overwrite="yes">
  122. <fileset dir="${WPS_Functions.childproperties}" includes="*.properties"/>
  123. </concat>
  124. <!--<property file="${build_WPS_Functions.xml.properties}"/>-->
  125. </target>
  126. <target name="read_WPS_Functions.childproperties.builds"
  127. depends="create_tempdir"
  128. description="Read installed modules builds to exec them in write_child_props_to_config_dir">
  129. <fileset id="dist.contents" dir="${WPS_Functions}" includes="**/build*.xml"><!-- includes="**/build*.xml" -->
  130. <exclude name="**/temp/**"/>
  131. <exclude name="**/recurse_cache/**"/>
  132. <exclude name="**/build_WPS_Functions.xml/**"/>
  133. <exclude name="**/build_WPS_Functions.xml/**"/>
  134. </fileset>
  135. <property name="prop.dist.contents" refid="dist.contents"/>
  136. <echoxml file="${WPS_Functions.childproperties.builds.xml}">
  137. <WPS_Functions.childproperties.builds>${prop.dist.contents}</WPS_Functions.childproperties.builds>
  138. </echoxml>
  139. <!--<ant antfile="...file..." inheritall="yes" inheritrefs="yes" target="write_child_props_to_config_dir"/>-->
  140. <xslt basedir="${WPS_Functions.temp}"
  141. style="${build_WPS_Functions.xsl}"
  142. in="${WPS_Functions.childproperties.builds.xml}"
  143. destdir="${WPS_Functions.temp}"
  144. out="${build_WPS_Functions.childproperties.builds.xml}">
  145. <factory name="net.sf.saxon.TransformerFactoryImpl">
  146. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  147. <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="RelatedFeatureRoot"/>-->
  148. </factory>
  149. <param name="basedir" expression="${basedir}"/>
  150. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  151. <param name="WPS_Functions" expression="${WPS_Functions}"/>
  152. </xslt>
  153. </target>
  154. <target name="read_WPS_Functions.childproperties.builds.read"
  155. depends="read_WPS_Functions.childproperties.builds">
  156. <ant antfile="${build_WPS_Functions.childproperties.builds.xml}"
  157. inheritall="yes"
  158. inheritrefs="yes"/>
  159. </target>
  160. <target name="save_build_properties" depends="create_tempdir"><!-- todo nie wiem czy trzymac properties tu i tam - do optymalziacji--><!-- ${uuid} -->
  161. <!--<ant antfile="${build_root.xml}" target="save_build_properties"/>
  162. <loadproperties srcfile="${build_properties}"/>-->
  163. <echo>#169 TODO TO DISABLE save_build_properties </echo>
  164. <!-- <echo>#189 debug $WPS_Functions.temp = ${WPS_Functions.temp} - $WPS_Functions.properties = ${WPS_Functions.properties}</echo>
  165. <echoproperties destfile="${WPS_Functions.properties}"/>
  166. <chmod file="${WPS_Functions.properties}" perm="777" failonerror="false"/>
  167. <chown file="${WPS_Functions.properties}"
  168. owner="${p5build_SE.SYSTEM.local-user}"
  169. failonerror="false"/>-->
  170. </target>
  171. <target name="clean"
  172. description="to clean modules dependent temporary files and its outputs">
  173. <ant antfile="${default_db:recurse_ant}" target="clean"/>
  174. <ant antfile="${get_wfs}" target="clean"/>
  175. <ant antfile="${build_CRM_PROCES_tree}" target="clean"/>
  176. <ant antfile="${graph_gnuplot}" target="clean"/>
  177. <ant antfile="${object_modeling_build_infrastructure}" target="clean"/>
  178. <ant antfile="${object_modeling_new}" target="clean"/>
  179. </target>
  180. </project>