build__biale_plamy.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project
  3. xmlns:bp="https://procesy5.pl/biale_plamy-schema.xsd"
  4. basedir="." name="biale_plamy-generate_data" default="biale_plamy-generate_data">
  5. <!--
  6. -->
  7. <property name="biale_plamy-prepare_sql_data.php" value="biale_plamy-prepare_sql_data.php"/>
  8. <property name="biale_plamy-generate_data.php" value="biale_plamy-generate_data.php"/>
  9. <property name="biale_plamy-find_ways.php" value="biale_plamy-find_ways.php"/>
  10. <property name="joins_asText.xml" value="joins_asText.xml"/>
  11. <property name="joins2ways.xml" value="joins2ways.xml"/>
  12. <property name="points2ID_Way.xml" value="points2ID_Way.xml"/>
  13. <property name="ways_2ID_Way.xml" value="ways_2ID_Way.xml"/>
  14. <property name="joins2ways_z_ID_Way.xsl" value="joins2ways_z_ID_Way.xsl"/>
  15. <property name="joins2ways_z_ID_Way.xml" value="joins2ways_z_ID_Way.xml"/>
  16. <property name="biale_plamy_joins2ways_do_paths.xsl" value="biale_plamy_joins2ways_do_paths.xsl"/>
  17. <property name="points_asText.xml" value="points_asText.xml"/>
  18. <property name="points2joins.xml" value="points2joins.xml"/>
  19. <property name="edge_joins.xml" value="edge_joins.xml"/>
  20. <property name="edge_joins_filled_paths.xml" value="edge_joins_filled_paths.xml"/>
  21. <property name="edge_joins_filled_paths.xsl" value="edge_joins_filled_paths.xsl"/>
  22. <property name="edge_paths_with_PE.xml" value="edge_paths_with_PE.xml"/><!-- biale_plamy_from_paths_php_to_place_PE
  23. -->
  24. <target name="check" >
  25. <echo message="testuje check"/>
  26. <condition property="test_if_INPUTxml" taskname="PROCES_TO_DITA_build" value="AVIABLE">
  27. <available file="${INPUT}" filepath="." />
  28. </condition>
  29. </target>
  30. <target name="biale_plamy-generate_data" >
  31. <echo message="odpalam biale_plamy-generate_data"/>
  32. <delete file="${joins2ways_z_ID_Way.xml}"/>
  33. <antcall target="biale_plamy_points2ID_Way_do_Joins"/>
  34. <delete file="${edge_joins.xml}"/>
  35. <antcall target="biale_plamy_joins2ways_do_paths"/>
  36. </target>
  37. <target name="biale_plamy_prepare_mysql_data">
  38. <echo message="biale_plamy_prepare_mysql_data "/>
  39. <exec executable="php" failonerror="true" dir=".">
  40. <arg file="${biale_plamy-prepare_sql_data.php}"/>
  41. </exec>
  42. </target>
  43. <target name="biale_plamy-generate_data_sql">
  44. <!--<antcall target="install_in_file_db_query">
  45. <param name="sql_query" value="select 1+1;"/>
  46. </antcall>-->
  47. <exec executable="php" failonerror="true" dir=".">
  48. <arg file="${biale_plamy-generate_data.php}"/>
  49. </exec>
  50. <echo message="Teraz Przelec arraya joins2ways pod katem 1-elementowych subarrayow"/>
  51. </target>
  52. <target name="biale_plamy_points2ID_Way_do_Joins">
  53. <echo message="przygotownie z joins2ways xsl biale_plamy_joins2ways_do_paths.xsl pod katem 1 katem 1-elementowych subarrayow aby zrobic paths "/>
  54. <xslt basedir="./" style="${joins2ways_z_ID_Way.xsl}" in="${joins2ways.xml}" destdir="./" out="${joins2ways_z_ID_Way.xml}" >
  55. <factory name="net.sf.saxon.TransformerFactoryImpl">
  56. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  57. <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="DITA_PARSE_templ"/>-->
  58. <!--<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-->
  59. </factory>
  60. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  61. <param name="points2ID_Way.xml" expression="${ways_2ID_Way.xml}"/>
  62. </xslt>
  63. </target>
  64. <target name="biale_plamy_joins2ways_do_paths">
  65. <echo message="przygotownie z joins2ways xsl biale_plamy_joins2ways_do_paths.xsl pod katem 1 katem 1-elementowych subarrayow aby zrobic paths "/>
  66. <xslt basedir="./" style="${biale_plamy_joins2ways_do_paths.xsl}" in="${joins2ways_z_ID_Way.xml}" destdir="./" out="${edge_joins.xml}" >
  67. <factory name="net.sf.saxon.TransformerFactoryImpl">
  68. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  69. <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="DITA_PARSE_templ"/>-->
  70. <!--<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-->
  71. </factory>
  72. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  73. <!--<param name="dita_task_template_file_param" expression="main.dita"/>-->
  74. </xslt>
  75. </target>
  76. <!-- wyznaczenie sciezek do ulozenia PE - dziala-->
  77. <target name="biale_plamy_paths_to_findways_php"></target>
  78. <!-- postawienie PE po trasach -->
  79. <target name="biale_plamy_from_paths_php_to_place_PE"></target>
  80. <!-- przeliczenie dla kazdego PE z trasy punktu przeciecia i wybranie najkrotszej i wygenerowania kabla -->
  81. <target name="biale_plamy_analyze_shortest_and_trace_cables"></target>
  82. <!--<target name="1_install_mysql_functions">
  83. <property name="php_script_header"><?php
  84. $_SERVER['SERVER_NAME'] = 'biuro.biall-net.pl';
  85. //when used in /Library/Server/Web/Data/Sites/bzyk-biale-plamy-php-temp/SE/dev on biuro.biall-net.pl
  86. if( file_exists ( "../../se-lib/bootstrap.php"))
  87. require("../../se-lib/bootstrap.php");
  88. //when used in in native SE
  89. else require("../../../../SE-production-git/SE/se-lib/bootstrap.php");
  90. Lib::loadClass("Vendor_Geophp");
  91. ?></property>
  92. </target-->
  93. <!--<target name="install_in_file_db_query">
  94. <!-\-<property name="sql_query"/>-\->
  95. <property name="db_query_php_code_left" >
  96. <?php
  97. $db = DB::getDB();
  98. $db->query("
  99. ?>
  100. <![CDATA[asdasd asd ]]>
  101. </property>
  102. <script language="php"></script>
  103. <property name="db_query_php_code_right">
  104. <?php
  105. ");
  106. ?>
  107. </property>
  108. <echo output="db_query_php.php" message="${db_query_php_code_left}"/> <!-\-${sql_query}${db_query_php_code_right} -\->
  109. </target>-->
  110. <!--<target name="install_file_and_exec"/>-->
  111. <target name="check-info" if="test_if_INPUTxml">
  112. <echo message="Using default XML object on input from file ${INPUT} . "/>
  113. </target>
  114. <target name="PROCES_TO_DITA_build" depends="check-info">
  115. <echo message="PROCES_TO_DITA_build to ${test_if_INPUTxml}"/>
  116. <!-- przyklad z uzywaniem saxona ktorego wczesniej trzeba pobrac z port install saxon -->
  117. <!--<xslt style="copy-no-xml.xsl" in="${INPUT}" out="${Test_z_getfeature_do_parse__noxml.xml}"> <!-\- {Test_z_getfeature_do_parse__noxml.xml"-\->
  118. <factory name="net.sf.saxon.TransformerFactoryImpl">
  119. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  120. </factory>
  121. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  122. </xslt>-->
  123. <!--<xslt style="copy-no-xml.xsl" in="main.dita" out="${main__noxml.dita}"/>-->
  124. <!--<concat destfile="${tmp.xml}" append="true" encoding="UTF-8" >
  125. <string>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  126. &lt;root&gt;</string>
  127. <file file="${Test_z_getfeature_do_parse__noxml.xml}" />
  128. <file file="${main__noxml.dita}"/>
  129. <string>&lt;/root&gt;</string>
  130. </concat>-->
  131. <!-- parsuje main.dita aby wiedziec, jaki proces jest zalaczany do danego zaglebienia aby wygenerowac docelowy plik dita z zaglebieniami -->
  132. <xslt basedir="./" style="${parse_dita_templ.xsl}" in="${INPUT}" destdir="./" out="out.dita" >
  133. <factory name="net.sf.saxon.TransformerFactoryImpl">
  134. <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
  135. <attribute name="http://saxon.sf.net/feature/initialMode" value="DITA_PARSE_templ"/>
  136. <!--<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-->
  137. </factory>
  138. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  139. <!--<param name="dita_task_template_file_param" expression="main.dita"/>-->
  140. </xslt>
  141. <!-- tymczasowe rem dla zrobienia akcji wyzej -->
  142. <!--<xslt basedir="./" style="${PROCES_INCLUDE.xsl}" in="${INPUT}" destdir="./" out="out.dita" >
  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="PROCES_INCLUDE"/>
  146. <!-\-<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-\->
  147. </factory>
  148. <classpath location="/opt/local/share/java/saxon9he.jar"/>
  149. <!-\-<param name="dita_task_template_file_param" expression="main.dita"/>-\->
  150. </xslt>-->
  151. <!--<property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>-->
  152. <!--<exec executable="${dita.dir}" dir=".">
  153. <arg value="-i"/>
  154. <arg value="${out_task.dita}" />
  155. <arg value="-f" />
  156. <arg value="pdf"/>
  157. <arg value="-o"/>
  158. <arg value="out"/>
  159. </exec>-->
  160. <!--<exec executable="bash" dir="." outputproperty="out_task_file">
  161. <arg value="-c"/>
  162. <arg value="echo ${out_task.dita} |sed 's/^.*\///'"/>
  163. </exec>-->
  164. <!--<propertyregex property="out_file" input="${out_task.dita}" regexp="$.*/(.*)" select="\1."/>-->
  165. <!--<loadfile property="result" srcFile="out/${out_task_file}.pdf"/>-->
  166. <!--<echo message="input was : ${input}"/>-->
  167. <!--<echo message="${result}"/>-->
  168. <!--<propertyregex
  169. name="test"
  170. property="current.target.dir"
  171. input="com.element.subelement"
  172. regexp="\."
  173. replace="/"
  174. global="true" />-->
  175. </target>
  176. </project>