| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211 |
- <?xml version="1.0" encoding="UTF-8"?>
- <project
- xmlns:bp="https://procesy5.pl/biale_plamy-schema.xsd"
- basedir="." name="biale_plamy-generate_data" default="biale_plamy-generate_data">
- <!--
-
-
- -->
- <property name="biale_plamy-prepare_sql_data.php" value="biale_plamy-prepare_sql_data.php"/>
- <property name="biale_plamy-generate_data.php" value="biale_plamy-generate_data.php"/>
- <property name="biale_plamy-find_ways.php" value="biale_plamy-find_ways.php"/>
- <property name="joins_asText.xml" value="joins_asText.xml"/>
- <property name="joins2ways.xml" value="joins2ways.xml"/>
- <property name="points2ID_Way.xml" value="points2ID_Way.xml"/>
- <property name="ways_2ID_Way.xml" value="ways_2ID_Way.xml"/>
-
- <property name="joins2ways_z_ID_Way.xsl" value="joins2ways_z_ID_Way.xsl"/>
- <property name="joins2ways_z_ID_Way.xml" value="joins2ways_z_ID_Way.xml"/>
- <property name="biale_plamy_joins2ways_do_paths.xsl" value="biale_plamy_joins2ways_do_paths.xsl"/>
- <property name="points_asText.xml" value="points_asText.xml"/>
- <property name="points2joins.xml" value="points2joins.xml"/>
- <property name="edge_joins.xml" value="edge_joins.xml"/>
- <property name="edge_joins_filled_paths.xml" value="edge_joins_filled_paths.xml"/>
- <property name="edge_joins_filled_paths.xsl" value="edge_joins_filled_paths.xsl"/>
-
- <property name="edge_paths_with_PE.xml" value="edge_paths_with_PE.xml"/><!-- biale_plamy_from_paths_php_to_place_PE
- -->
-
- <target name="check" >
- <echo message="testuje check"/>
- <condition property="test_if_INPUTxml" taskname="PROCES_TO_DITA_build" value="AVIABLE">
- <available file="${INPUT}" filepath="." />
- </condition>
- </target>
-
- <target name="biale_plamy-generate_data" >
- <echo message="odpalam biale_plamy-generate_data"/>
- <delete file="${joins2ways_z_ID_Way.xml}"/>
- <antcall target="biale_plamy_points2ID_Way_do_Joins"/>
- <delete file="${edge_joins.xml}"/>
- <antcall target="biale_plamy_joins2ways_do_paths"/>
-
- </target>
-
-
-
- <target name="biale_plamy_prepare_mysql_data">
- <echo message="biale_plamy_prepare_mysql_data "/>
- <exec executable="php" failonerror="true" dir=".">
- <arg file="${biale_plamy-prepare_sql_data.php}"/>
- </exec>
- </target>
-
-
-
- <target name="biale_plamy-generate_data_sql">
- <!--<antcall target="install_in_file_db_query">
- <param name="sql_query" value="select 1+1;"/>
- </antcall>-->
- <exec executable="php" failonerror="true" dir=".">
- <arg file="${biale_plamy-generate_data.php}"/>
- </exec>
- <echo message="Teraz Przelec arraya joins2ways pod katem 1-elementowych subarrayow"/>
- </target>
-
- <target name="biale_plamy_points2ID_Way_do_Joins">
- <echo message="przygotownie z joins2ways xsl biale_plamy_joins2ways_do_paths.xsl pod katem 1 katem 1-elementowych subarrayow aby zrobic paths "/>
- <xslt basedir="./" style="${joins2ways_z_ID_Way.xsl}" in="${joins2ways.xml}" destdir="./" out="${joins2ways_z_ID_Way.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="DITA_PARSE_templ"/>-->
- <!--<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-->
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <param name="points2ID_Way.xml" expression="${ways_2ID_Way.xml}"/>
- </xslt>
- </target>
-
- <target name="biale_plamy_joins2ways_do_paths">
- <echo message="przygotownie z joins2ways xsl biale_plamy_joins2ways_do_paths.xsl pod katem 1 katem 1-elementowych subarrayow aby zrobic paths "/>
- <xslt basedir="./" style="${biale_plamy_joins2ways_do_paths.xsl}" in="${joins2ways_z_ID_Way.xml}" destdir="./" out="${edge_joins.xml}" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="DITA_PARSE_templ"/>-->
- <!--<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-->
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <!--<param name="dita_task_template_file_param" expression="main.dita"/>-->
- </xslt>
- </target>
-
- <!-- wyznaczenie sciezek do ulozenia PE - dziala-->
- <target name="biale_plamy_paths_to_findways_php"></target>
-
- <!-- postawienie PE po trasach -->
- <target name="biale_plamy_from_paths_php_to_place_PE"></target>
-
- <!-- przeliczenie dla kazdego PE z trasy punktu przeciecia i wybranie najkrotszej i wygenerowania kabla -->
- <target name="biale_plamy_analyze_shortest_and_trace_cables"></target>
-
- <!--<target name="1_install_mysql_functions">
- <property name="php_script_header"><?php
- $_SERVER['SERVER_NAME'] = 'biuro.biall-net.pl';
- //when used in /Library/Server/Web/Data/Sites/bzyk-biale-plamy-php-temp/SE/dev on biuro.biall-net.pl
- if( file_exists ( "../../se-lib/bootstrap.php"))
- require("../../se-lib/bootstrap.php");
- //when used in in native SE
- else require("../../../../SE-production-git/SE/se-lib/bootstrap.php");
- Lib::loadClass("Vendor_Geophp");
- ?></property>
-
- </target-->
-
- <!--<target name="install_in_file_db_query">
- <!-\-<property name="sql_query"/>-\->
- <property name="db_query_php_code_left" >
- <?php
- $db = DB::getDB();
- $db->query("
- ?>
- <![CDATA[asdasd asd ]]>
-
- </property>
- <script language="php"></script>
- <property name="db_query_php_code_right">
- <?php
- ");
- ?>
- </property>
- <echo output="db_query_php.php" message="${db_query_php_code_left}"/> <!-\-${sql_query}${db_query_php_code_right} -\->
-
- </target>-->
-
- <!--<target name="install_file_and_exec"/>-->
-
-
-
- <target name="check-info" if="test_if_INPUTxml">
- <echo message="Using default XML object on input from file ${INPUT} . "/>
- </target>
-
- <target name="PROCES_TO_DITA_build" depends="check-info">
- <echo message="PROCES_TO_DITA_build to ${test_if_INPUTxml}"/>
- <!-- przyklad z uzywaniem saxona ktorego wczesniej trzeba pobrac z port install saxon -->
- <!--<xslt style="copy-no-xml.xsl" in="${INPUT}" out="${Test_z_getfeature_do_parse__noxml.xml}"> <!-\- {Test_z_getfeature_do_parse__noxml.xml"-\->
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- </xslt>-->
- <!--<xslt style="copy-no-xml.xsl" in="main.dita" out="${main__noxml.dita}"/>-->
- <!--<concat destfile="${tmp.xml}" append="true" encoding="UTF-8" >
- <string><?xml version="1.0" encoding="UTF-8"?>
- <root></string>
- <file file="${Test_z_getfeature_do_parse__noxml.xml}" />
- <file file="${main__noxml.dita}"/>
- <string></root></string>
- </concat>-->
-
- <!-- parsuje main.dita aby wiedziec, jaki proces jest zalaczany do danego zaglebienia aby wygenerowac docelowy plik dita z zaglebieniami -->
- <xslt basedir="./" style="${parse_dita_templ.xsl}" in="${INPUT}" destdir="./" out="out.dita" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="DITA_PARSE_templ"/>
- <!--<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-->
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <!--<param name="dita_task_template_file_param" expression="main.dita"/>-->
- </xslt>
-
- <!-- tymczasowe rem dla zrobienia akcji wyzej -->
- <!--<xslt basedir="./" style="${PROCES_INCLUDE.xsl}" in="${INPUT}" destdir="./" out="out.dita" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <attribute name="http://saxon.sf.net/feature/initialMode" value="PROCES_INCLUDE"/>
- <!-\-<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-\->
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <!-\-<param name="dita_task_template_file_param" expression="main.dita"/>-\->
- </xslt>-->
-
-
-
- <!--<property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>-->
- <!--<exec executable="${dita.dir}" dir=".">
- <arg value="-i"/>
- <arg value="${out_task.dita}" />
- <arg value="-f" />
- <arg value="pdf"/>
- <arg value="-o"/>
- <arg value="out"/>
- </exec>-->
-
- <!--<exec executable="bash" dir="." outputproperty="out_task_file">
- <arg value="-c"/>
- <arg value="echo ${out_task.dita} |sed 's/^.*\///'"/>
- </exec>-->
-
- <!--<propertyregex property="out_file" input="${out_task.dita}" regexp="$.*/(.*)" select="\1."/>-->
- <!--<loadfile property="result" srcFile="out/${out_task_file}.pdf"/>-->
- <!--<echo message="input was : ${input}"/>-->
- <!--<echo message="${result}"/>-->
- <!--<propertyregex
- name="test"
- property="current.target.dir"
- input="com.element.subelement"
- regexp="\."
- replace="/"
- global="true" />-->
- </target>
- </project>
|