|
|
@@ -1,13 +1,48 @@
|
|
|
<?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">
|
|
|
- <!--
|
|
|
+ basedir="." name="biale_plamy-generate_data" default="default">
|
|
|
|
|
|
|
|
|
- -->
|
|
|
+ <tstamp><format property="TODAY_UK" pattern="yyyy-mm-dd"/></tstamp>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <property name="bypass_errors" value="1"/><!-- to continue transform even with errors -->
|
|
|
+ <property name="build.log" value="build.log"/><property name="build.log.old" value="${build.log}.old"/>
|
|
|
+
|
|
|
+ <target name="build_log_exists">
|
|
|
+
|
|
|
+ <condition taskname="build.log.old_file" property="build_log_exists" value="tak">
|
|
|
+ <!--<echo>sprawdzam czy jest ${build.log} </echo>-->
|
|
|
+ <available file="${build.log}" filepath="." />
|
|
|
+ </condition>
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <target name="build.log.old_file" depends="build_log_exists">
|
|
|
+ <!--<move file="${build.log}" tofile="${build.log}.old"/>-->
|
|
|
+ <echo append="true" file="${build.log}"> Archiwizacja loga w dniu ${TODAY_UK}
|
|
|
+ </echo>
|
|
|
+ <concat destfile="${build.log.old}" append="true">
|
|
|
+ <filelist dir="." files="${build.log}"/>
|
|
|
+ </concat>
|
|
|
+ <delete file="${build.log}"/>
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <target name="default">
|
|
|
+ <antcall target="build.log.old_file"/>
|
|
|
+ <antcall target="biale_plamy-generate_data"/>
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <property name="PE_Price" value="2500"/>
|
|
|
+ <property name="Cable_Price" value="3"/>
|
|
|
+ <property name="max_combinate_groups_elements" value="12"/> <!-- po ile wezlow mamy grupowac do wyliczania kombinacji kosztow -->
|
|
|
+ <property name="logic" value="grouped"/>
|
|
|
+ <!--<xsl:param name="logic" select="'sorted'"/>--> <!-- tutaj robi grupy ale analizyje w grupie tylko wazniejsze/bardziej oblozone wezly -->
|
|
|
+
|
|
|
+ <property name="mail_inform" value="a.binder@biall-net.pl"/> <!-- to inform about job complete -->
|
|
|
+
|
|
|
|
|
|
- <!--<property name="biale_plamy-prepare_sql_data.php" value="biale_plamy-prepare_sql_data.php"/>-->
|
|
|
<property name="biale_plamy_class_regenerate.php" value="biale_plamy_class_regenerate.php"/>
|
|
|
|
|
|
<property name="ways_as_Text_z_ID_xml.xsl" value="ways_as_Text_z_ID_xml.xsl"/>
|
|
|
@@ -19,31 +54,42 @@
|
|
|
<property name="points2ID_Way.xml" value="points2ID_Way.xml"/>
|
|
|
<property name="ways2drogi.xml" value="ways2drogi.xml"/><!--<property name="ways_2ID_Way.xml" value="ways_2ID_Way.xml"/>-->
|
|
|
|
|
|
- <property name="points2joins.xml" value="points2joins.xml"/>
|
|
|
+ <property name="points2joins.xml" value="points2joins.xml"/>
|
|
|
<property name="ways2joins.xml" value="ways2joins.xml"/>
|
|
|
<property name="ways_asText.xml" value="ways_asText.xml"/>
|
|
|
|
|
|
<property name="waysLengths.xmll" value="waysLengths.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="joins2ways_z_ID_Way_tempdir" value="joins2ways_z_ID_Way"/><!-- do trzymania tempow - nie wiadomo czy potrzebne bo duzo plikow -->
|
|
|
<property name="biale_plamy_joins2ways_do_paths.xsl" value="biale_plamy_joins2ways_do_paths.xsl"/>
|
|
|
|
|
|
<property name="edge_joins_filled_paths_make.xsl" value="edge_joins_filled_paths_make.xsl"/>
|
|
|
-
|
|
|
+ <property name="biale_put_xml_paths_to_mysql.php" value="biale_put_xml_paths_to_mysql.php"/>
|
|
|
|
|
|
<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="joins_asText_xml.xsl" value="joins_asText_xml.xsl"/>
|
|
|
<property name="joins_asText_xml.xml" value="joins_asText_xml.xml"/>
|
|
|
<!-- sciezki -->
|
|
|
<property name="edge_joins_filled_paths.xml" value="edge_joins_filled_paths.xml"/>
|
|
|
+ <property name="edge_joins_filled_paths" value="edge_joins_filled_paths"/> <!-- katalog do zapisywania sciezek -->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <property name="build_edge_paths_with_PE_controll_loop.xml" value="build_edge_paths_with_PE_controll_loop.xml"/>
|
|
|
+ <property name="build_edge_paths_with_PE_controll_loop.xsl" value="build_edge_paths_with_PE_controll_loop.xsl"/>
|
|
|
+ <property name="edge_paths_with_PE_controll_to_PE_collection.xsl" value="edge_paths_with_PE_controll_to_PE_collection.xsl"/>
|
|
|
|
|
|
<property name="edge_paths_with_PE.xsl" value="edge_paths_with_PE.xsl"/><!-- stary-->
|
|
|
<property name="edge_paths_with_PE_controll_to_PE.xsl" value="edge_paths_with_PE_controll_to_PE.xsl"/>
|
|
|
+
|
|
|
<property name="edge_paths_with_PE_controll.xsl" value="edge_paths_with_PE_controll.xsl"/><!-- nowy point matrix-->
|
|
|
- <property name="edge_paths_with_PE_controll_temp" value="edge_paths_with_PE_controll_temp"/> <!-- do oszukania silnika aby korzystac z petli i przekazywac dane do siebie -->
|
|
|
+ <property name="edge_paths_with_PE_controll_temp" value="edge_paths_with_PE_controll_temp"/>
|
|
|
+ <property name="edge_paths_with_PE_controll_paths_temp" value="edge_paths_with_PE_controll_paths_temp"/><!-- do oszukania silnika aby korzystac z petli i przekazywac dane do siebie -->
|
|
|
<property name="edge_paths_with_PE_controll_temp.alias" value="edge_paths_with_PE_controll_temp.alias"/>
|
|
|
|
|
|
<property name="edge_paths_with_PE_controll.xml" value="edge_paths_with_PE_controll.xml"/>
|
|
|
@@ -57,6 +103,52 @@
|
|
|
|
|
|
<property name="biale_put_Cables_to_PE.php" value="biale_put_Cables_to_PE.php"/>
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ <!--<include file="${build_edge_paths_with_PE_controll_loop.xml}" optional=""/>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <target description="shows options for project" name="help">
|
|
|
+ <echo> Generator for telecomunications objects - concentrations points based on constraints of prices of cable and cost of cocentrators (PE).
|
|
|
+ This parameters are set by variables: Set variables ( ex. sh# ant -DPE_Price=2500 -DCable_Price=3 -Dlogic=grouped PE_and_Cables -Dmax_combinate_groups_elements=12 )
|
|
|
+
|
|
|
+ or
|
|
|
+ # ant -DPE_Price=2500 -DCable_Price=3 -Dlogic=grouped -Dmax_combinate_groups_elements=18 build_edge_paths_with_PE_controll_loop.xml build_edge_paths_with_PE_controll_loop.xml_run edge_paths_with_PE.xml_from_collection biale_plamy_put_PE_to_mysql_php cables_from_joins_to_PE.xml biale_put_Cables_to_PE
|
|
|
+
|
|
|
+
|
|
|
+ VARIABLES
|
|
|
+ PE_Price - price per concentration point - default = ${PE_Price}
|
|
|
+ Cable_Price - price per one meter of cable - default = ${Cable_Price}
|
|
|
+ max_combinate_groups_elements - how many combinate points/per one group default ${max_combinate_groups_elements}
|
|
|
+ - above 20 will kill CPU ( it is alwasy 2^ {$var}
|
|
|
+ logic = grouped - set for grouping every group by param max_combinate_groups_elements
|
|
|
+ logic = sorted - use this option to minimize analyzed points in every group, which is weighted somehow by cost PE and cable
|
|
|
+ - ( default ${logic} )
|
|
|
+
|
|
|
+ bypass_errors - to continue transform even with errors - default = ${bypass_errors}
|
|
|
+
|
|
|
+
|
|
|
+ TARGETS
|
|
|
+
|
|
|
+ Maintly you should start by generatong data from php script - target: biale_plamy-generate_data
|
|
|
+ but it destroys all cache data.
|
|
|
+
|
|
|
+ By target: biale_plamy-just_xsl_PE_cables
|
|
|
+ You just makes files: ${joins2ways_z_ID_Way.xml} ,
|
|
|
+ and by target: AsTextToXml :
|
|
|
+ ${ways_as_Text_z_ID_xml.xml}, ${joins_asText_xml.xml}
|
|
|
+ ${edge_joins.xml} , ${edge_joins_filled_paths.xml}
|
|
|
+ and
|
|
|
+ also :
|
|
|
+ by target "PE_and_Cables"
|
|
|
+ ${edge_paths_with_PE_controll.xml}, ${edge_paths_with_PE.xml}, ${biale_plamy_put_PE_to_mysql_php}
|
|
|
+ ${cables_from_joins_to_PE.xml}, ${biale_put_Cables_to_PE}
|
|
|
+
|
|
|
+ </echo>
|
|
|
+
|
|
|
+ </target>
|
|
|
+
|
|
|
<target name="check" >
|
|
|
<echo message="testuje check"/>
|
|
|
<condition property="test_if_INPUTxml" taskname="PROCES_TO_DITA_build" value="AVIABLE">
|
|
|
@@ -65,7 +157,8 @@
|
|
|
</target>
|
|
|
|
|
|
|
|
|
- <target name="biale_plamy-generate_data">
|
|
|
+ <target name="biale_plamy-generate_data" description="regenerate data and make all to final">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
<!-- nowy sposob -->
|
|
|
<antcall target="biale_plamy_class_regenerate.php"/>
|
|
|
|
|
|
@@ -76,15 +169,7 @@
|
|
|
|
|
|
<delete file="${edge_joins.xml}"/>
|
|
|
<antcall target="edge_joins.xml"/>
|
|
|
-
|
|
|
- <delete file="${edge_joins_filled_paths.xml}"/>
|
|
|
- <antcall target="edge_joins_filled_paths_make"/>
|
|
|
-
|
|
|
- <antcall target="edge_paths_with_PE_controll.xml"/>
|
|
|
- <antcall target="edge_paths_with_PE.xml"/>
|
|
|
-
|
|
|
- <antcall target="biale_plamy_put_PE_to_mysql_php"/>
|
|
|
-
|
|
|
+
|
|
|
<!--<antcall target="biale_plamy_class_findWay.php"/>-->
|
|
|
<antcall target="PE_and_Cables"/>
|
|
|
</target>
|
|
|
@@ -102,11 +187,6 @@
|
|
|
|
|
|
<delete file="${edge_joins.xml}"/>
|
|
|
<antcall target="edge_joins.xml"/>
|
|
|
-
|
|
|
- <delete file="${edge_joins_filled_paths.xml}"/>
|
|
|
- <antcall target="edge_joins_filled_paths_make"/>
|
|
|
-
|
|
|
-
|
|
|
<antcall target="PE_and_Cables"/>
|
|
|
</target>
|
|
|
|
|
|
@@ -144,27 +224,35 @@
|
|
|
|
|
|
|
|
|
<target name="check_files_for_PE_and_Cables" >
|
|
|
- <echo message="czy sa wymagane pliki do wygenerowania samych PE_and_Cables"/>
|
|
|
+ <echo message="czy sa wymagane pliki do wygenerowania samych PE_and_Cables" />
|
|
|
<condition property="files_PE_and_Cables" taskname="PE_and_Cables" value="AVIABLE">
|
|
|
<available file="${points2joins.xml}" filepath="." />
|
|
|
- <available file="${ways2joins.xml}" filepath="." />
|
|
|
+ <!-- <available file="${ways2joins.xml}" filepath="." />
|
|
|
<available file="${edge_joins_filled_paths.xml}" filepath="." />
|
|
|
<available file="${points_asText.xml}" filepath="." />
|
|
|
- <available file="${joins2ways_z_ID_Way.xml}" filepath="." />
|
|
|
+ <available file="${joins2ways_z_ID_Way.xml}" filepath="." />-->
|
|
|
</condition>
|
|
|
</target>
|
|
|
|
|
|
|
|
|
- <target name="PE_and_Cables">
|
|
|
- <antcall target="edge_paths_with_PE_controll.xml"/>
|
|
|
- <antcall target="edge_paths_with_PE.xml"/>
|
|
|
+ <target name="PE_and_Cables" depends="check_files_for_PE_and_Cables">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
+ <delete file="${edge_joins_filled_paths.xml}"/>
|
|
|
+ <antcall target="edge_joins_filled_paths_make"/>
|
|
|
+ <antcall target="biale_put_xml_paths_to_mysql.php"/>
|
|
|
+ <antcall target="build_edge_paths_with_PE_controll_loop.xml"/>
|
|
|
+ <antcall target="build_edge_paths_with_PE_controll_loop.xml_run"/>
|
|
|
+ <antcall target="edge_paths_with_PE.xml_from_collection"/>
|
|
|
<antcall target="biale_plamy_put_PE_to_mysql_php"/>
|
|
|
+ <!--<antcall target="edge_paths_with_PE_controll.xml"/>--><!-- to rem -->
|
|
|
+ <!--<antcall target="edge_paths_with_PE_controll.xml"/>-->
|
|
|
<antcall target="cables_from_joins_to_PE.xml"/>
|
|
|
<antcall target="biale_put_Cables_to_PE"/>
|
|
|
</target>
|
|
|
|
|
|
|
|
|
<target name="biale_plamy-prepare_sql_data.php">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
<echo message="biale_plamy_prepare_mysql_data - przygotowuje punkty xpoint"/>
|
|
|
<exec executable="php" failonerror="true" dir=".">
|
|
|
<arg file="${biale_plamy-prepare_sql_data.php}"/>
|
|
|
@@ -179,6 +267,7 @@
|
|
|
<!--<antcall target="install_in_file_db_query">
|
|
|
<param name="sql_query" value="select 1+1;"/>
|
|
|
</antcall>-->
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
<exec executable="php" failonerror="true" dir=".">
|
|
|
<arg file="${biale_plamy_class_regenerate.php}"/>
|
|
|
</exec>
|
|
|
@@ -188,6 +277,7 @@
|
|
|
|
|
|
|
|
|
<target name="joins2ways_z_ID_Way.xml">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
<echo message="przygotownie z joins2ways xsl biale_plamy_joins2ways_do_paths.xsl pod katem 1 katem 1-elementowych subarrayow aby zrobic paths out ${joins2ways_z_ID_Way.xml} "/>
|
|
|
<delete file="${joins2ways_z_ID_Way.xml}"/>
|
|
|
<xslt basedir="./" style="${joins2ways_z_ID_Way.xsl}" in="${joins2ways.xml}" destdir="./" out="${joins2ways_z_ID_Way.xml}" >
|
|
|
@@ -197,16 +287,15 @@
|
|
|
<!--<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="${ways2drogi.xml}"/>
|
|
|
<param name="points2joins.xml" expression="${points2joins.xml}"/>
|
|
|
- <param name="points2ID_Way.xml" expression="${ways2drogi.xml}"/>
|
|
|
-
|
|
|
-
|
|
|
+ <param name="ways2drogi.xml" expression="${ways2drogi.xml}"/>
|
|
|
+ <param name="joins2ways_z_ID_Way_tempdir" expression="${joins2ways_z_ID_Way_tempdir}"/>
|
|
|
</xslt>
|
|
|
</target>
|
|
|
|
|
|
|
|
|
<target name="joins_asText_xml.xml">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
<echo message="uporzadkowanie Joins as text aby mialy xmlowe wspolrzedne - out ${joins_asText_xml.xml}"/>
|
|
|
<delete file="${joins_asText_xml.xml}"/>
|
|
|
<xslt basedir="./" style="${joins_asText_xml.xsl}" in="${joins_asText.xml}" destdir="./" out="${joins_asText_xml.xml}" >
|
|
|
@@ -222,6 +311,7 @@
|
|
|
|
|
|
|
|
|
<target name="edge_joins.xml">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
<echo message="przygotownie ${edge_joins.xml} z joins2ways xsl biale_plamy_joins2ways_do_paths.xsl pod katem 1 katem 1-elementowych subarrayow aby zrobic paths "/>
|
|
|
<delete file="${edge_joins.xml}"/>
|
|
|
<xslt basedir="./" style="${biale_plamy_joins2ways_do_paths.xsl}" in="${joins2ways_z_ID_Way.xml}" destdir="./" out="${edge_joins.xml}" >
|
|
|
@@ -237,6 +327,7 @@
|
|
|
|
|
|
<!-- wyznaczenie sciezek do ulozenia PE - dziala - -->
|
|
|
<target name="ways_as_Text_z_ID_xml.xml">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
<echo message="przygotownie ${ways_as_Text_z_ID_xml.xml} z joins2ways xsl biale_plamy_joins2ways_do_paths.xsl pod katem 1 katem 1-elementowych subarrayow aby zrobic paths "/>
|
|
|
<delete file="${ways_as_Text_z_ID_xml.xml}"/>
|
|
|
<xslt basedir="./" style="${ways_as_Text_z_ID_xml.xsl}" in="${ways_asText.xml}" destdir="./" out="${ways_as_Text_z_ID_xml.xml}" >
|
|
|
@@ -249,17 +340,14 @@
|
|
|
<param name="ways2drogi.xml" expression="${ways2drogi.xml}"/>
|
|
|
<param name="waysLengths.xml" expression="${waysLengths.xmll}"/>
|
|
|
<!--<param name="ways2joins.xml" expression="${ways2joins.xml}"/>-->
|
|
|
-
|
|
|
</xslt>
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
</target>
|
|
|
|
|
|
- <target name="edge_joins_filled_paths_make">
|
|
|
+ <target name="edge_joins_filled_paths_make" description="przygotowanie sciezek do parsowania przez ${edge_paths_with_PE_controll.xsl}, male sciezki do katalogu ${edge_joins_filled_paths} oraz zbudowanie zadania do build ">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
<echo message="przygotownie ${edge_joins_filled_paths.xml} z joins2ways xsl biale_plamy_joins2ways_do_paths.xsl pod katem 1 katem 1-elementowych subarrayow aby zrobic paths "/>
|
|
|
<delete file="${edge_joins_filled_paths.xml}"/>
|
|
|
+ <delete dir="${edge_joins_filled_paths}"/>
|
|
|
<xslt basedir="./" style="${edge_joins_filled_paths_make.xsl}" in="${edge_joins.xml}" destdir="./" out="${edge_joins_filled_paths.xml}" >
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
@@ -271,10 +359,47 @@
|
|
|
<param name="joins_asText_xml.xml" expression="${joins_asText_xml.xml}"/>
|
|
|
<param name="ways2joins.xml" expression="${ways2joins.xml}"/>
|
|
|
<param name="joins2ways_z_ID_Way.xml" expression="${joins2ways_z_ID_Way.xml}"/>
|
|
|
+ <param name="edge_joins_filled_paths" expression="${edge_joins_filled_paths}"/>
|
|
|
+ <param name="bypass_errors" expression="${bypass_errors}"/>
|
|
|
</xslt>
|
|
|
+
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <target name="build_edge_paths_with_PE_controll_loop.xml">
|
|
|
+ <!-- zrobimy builda dla edge_path_control -->
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
+ <delete file="${build_edge_paths_with_PE_controll_loop.xml}"/>
|
|
|
+ <xslt basedir="./" style="${build_edge_paths_with_PE_controll_loop.xsl}" in="${edge_joins_filled_paths.xml}" destdir="./" out="${build_edge_paths_with_PE_controll_loop.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="edge_paths_with_PE_controll_temp" expression="${edge_paths_with_PE_controll_temp}"/>
|
|
|
+ <param name="edge_paths_with_PE_controll_temp.alias" expression="${edge_paths_with_PE_controll_temp.alias}"/>
|
|
|
+ <param name="edge_paths_with_PE_controll.xsl" expression="${edge_paths_with_PE_controll.xsl}"/>
|
|
|
+ <param name="edge_paths_with_PE_controll.xml" expression="${edge_paths_with_PE_controll.xml}"/>
|
|
|
+ <param name="edge_paths_with_PE_controll_paths_temp" expression="${edge_paths_with_PE_controll_paths_temp}"/> <!-- miejsce na temp drogi -->
|
|
|
+ <param name="edge_joins_filled_paths" expression="${edge_joins_filled_paths}"/>
|
|
|
+ <param name="PE_Price" expression="${PE_Price}"/>
|
|
|
+ <param name="Cable_Price" expression="${Cable_Price}"/>
|
|
|
+ <param name="max_combinate_groups_elements" expression="${max_combinate_groups_elements}"/> <!-- po ile wezlow mamy grupowac do wyliczania kombinacji kosztow -->
|
|
|
+ <param name="logic" expression="${logic}"/>
|
|
|
+ </xslt>
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <target name="build_edge_paths_with_PE_controll_loop.xml_run">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
+ <subant target="edge_paths_with_PE_controll_loop">
|
|
|
+ <file file="build_edge_paths_with_PE_controll_loop.xml"/>
|
|
|
+ </subant>
|
|
|
+ <!--<include file="${build_edge_paths_with_PE_controll_loop.xml}"/>
|
|
|
+ <ant antfile="${build_edge_paths_with_PE_controll_loop.xml}"/>-->
|
|
|
</target>
|
|
|
|
|
|
<target name="biale_put_xml_paths_to_mysql.php">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
<echo message="za pomoca ${biale_plamy_class_findWay.php} wkladam plik: ${edge_joins_filled_paths.xml} do bazy mysql "></echo>
|
|
|
<exec executable="php" failonerror="true" dir=".">
|
|
|
<arg file="${biale_put_xml_paths_to_mysql.php}"/>
|
|
|
@@ -293,6 +418,7 @@
|
|
|
|
|
|
<!-- postawienie PE po trasach stare-->
|
|
|
<target name="edge_paths_with_PE.xml_old">
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
<echo message="Wyznaczenie PE na podstawie tras ${edge_paths_with_PE.xml} "/>
|
|
|
<delete file="${edge_paths_with_PE.xml}"/>
|
|
|
<xslt basedir="./" style="${edge_paths_with_PE.xsl}" in="${edge_joins_filled_paths.xml}" destdir="./" out="${edge_paths_with_PE.xml}" >
|
|
|
@@ -302,48 +428,85 @@
|
|
|
<!--<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"/>-->
|
|
|
+ <param name="joins2ways_z_ID_Way.xml" expression="${joins2ways_z_ID_Way.xml}"/>
|
|
|
</xslt>
|
|
|
</target>
|
|
|
<!-- postawienie PE po trasach nowe-->
|
|
|
<target name="edge_paths_with_PE_controll.xml">
|
|
|
- <echo message="Wyznaczenie PE na podstawie tras ${edge_paths_with_PE.xml} nowym ${edge_paths_with_PE_controll.xsl} "/>
|
|
|
-
|
|
|
+ <record name="${build.log}" loglevel="verbose" append="true"/>
|
|
|
+ <echo message="Wyznaczenie PE na podstawie tras ${edge_paths_with_PE.xml} nowym ${edge_paths_with_PE_controll.xsl}
|
|
|
+ z parametrami PE_Price=${PE_Price} , Cable_Price=${Cable_Price}, max_combinate_groups_elements=${max_combinate_groups_elements},
|
|
|
+ logic=${logic}.
|
|
|
+ "/>
|
|
|
<delete file="${edge_paths_with_PE_controll.xml}"/>
|
|
|
-
|
|
|
- <delete dir="${edge_paths_with_PE_controll_temp}"/>
|
|
|
- <delete dir="${edge_paths_with_PE_controll_temp.alias}"/>
|
|
|
+ <delete dir="${edge_paths_with_PE_controll_temp}"/>
|
|
|
+ <delete dir="${edge_paths_with_PE_controll_temp.alias}"/>
|
|
|
<mkdir dir="${edge_paths_with_PE_controll_temp}"/>
|
|
|
<symlink link="${edge_paths_with_PE_controll_temp.alias}" resource="${edge_paths_with_PE_controll_temp}"/>
|
|
|
+ <xslt basedir="./" style="${edge_paths_with_PE_controll.xsl}" in="${edge_joins_filled_paths.xml}" destdir="./" out="${edge_paths_with_PE_controll.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="edge_paths_with_PE.xml" expression="${edge_paths_with_PE.xml}"/>-->
|
|
|
+ <param name="edge_paths_with_PE_controll_temp" expression="${edge_paths_with_PE_controll_temp}"/>
|
|
|
+ <param name="edge_paths_with_PE_controll_temp.alias" expression="${edge_paths_with_PE_controll_temp.alias}"/>
|
|
|
+ <param name="edge_joins_filled_paths" expression="${edge_joins_filled_paths}"/>
|
|
|
+ <param name="PE_Price" expression="${PE_Price}"/>
|
|
|
+ <param name="Cable_Price" expression="${Cable_Price}"/>
|
|
|
+ <param name="max_combinate_groups_elements" expression="${max_combinate_groups_elements}"/> <!-- po ile wezlow mamy grupowac do wyliczania kombinacji kosztow -->
|
|
|
+ <param name="logic" expression="${logic}"/>
|
|
|
+
|
|
|
+ <!--<xsl:param name="logic" select="'sorted'"/>--> <!-- tutaj robi grupy ale analizyje w grupie tylko wazniejsze/bardziej oblozone wezly -->
|
|
|
+ </xslt>
|
|
|
+ </target>
|
|
|
+
|
|
|
+
|
|
|
+ <!--<target name="edge_paths_with_PE_controll_loop">
|
|
|
+ <echo>todo wyzwolic to w petli dla edge_joins_filled_paths posortowanych od najstarszych do najmlodszych plikow</echo>
|
|
|
+ <xmlproperty file="${edge_joins_filled_paths_sorted.xml}"/>
|
|
|
+ <!-\-<for list="${item.key}" param="item">
|
|
|
+ <sequential>
|
|
|
+ <echo>The item id is </echo>
|
|
|
+ </sequential>
|
|
|
+ </for>-\->
|
|
|
+
|
|
|
+ </target>-->
|
|
|
+
|
|
|
+
|
|
|
+ <target name="edge_paths_with_PE.xml">
|
|
|
+ <echo message="OLD - edge_paths_with_PE.xml_from_collection!!! teraz uzywac Wyznaczenie PE na podstawie tras ${edge_paths_with_PE.xml} na podstawie ${edge_paths_with_PE_controll.xml} "/>
|
|
|
+ <delete file="${edge_paths_with_PE.xml}"/>
|
|
|
|
|
|
- <xslt basedir="./" style="${edge_paths_with_PE_controll.xsl}" in="${edge_joins_filled_paths.xml}" destdir="./" out="${edge_paths_with_PE_controll.xml}" >
|
|
|
+ <xslt basedir="./" style="${edge_paths_with_PE_controll_to_PE.xsl}" in="${edge_paths_with_PE_controll.xml}" destdir="./" out="${edge_paths_with_PE.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="edge_paths_with_PE.xml" expression="${edge_paths_with_PE.xml}"/>
|
|
|
+ <!--<param name="edge_paths_with_PE.xml" expression="${edge_paths_with_PE.xml}"/>
|
|
|
<param name="edge_paths_with_PE_controll_temp" expression="${edge_paths_with_PE_controll_temp}"/>
|
|
|
- <param name="edge_paths_with_PE_controll_temp.alias" expression="${edge_paths_with_PE_controll_temp.alias}"/>
|
|
|
+ <param name="edge_paths_with_PE_controll_temp.alias" expression="${edge_paths_with_PE_controll_temp.alias}"/>-->
|
|
|
</xslt>
|
|
|
</target>
|
|
|
|
|
|
-
|
|
|
- <target name="edge_paths_with_PE.xml">
|
|
|
- <echo message="Wyznaczenie PE na podstawie tras ${edge_paths_with_PE.xml} na podstawie ${edge_paths_with_PE_controll.xml} "/>
|
|
|
+ <target name="edge_paths_with_PE.xml_from_collection" description="Wyznaczenie PE na podstawie tras ${edge_paths_with_PE.xml} na podstawie ${edge_paths_with_PE_controll.xml} z katalogu kolekcji: ${edge_paths_with_PE_controll_paths_temp} ">
|
|
|
+ <echo message="Wyznaczenie PE na podstawie tras ${edge_paths_with_PE.xml} na podstawie ${edge_paths_with_PE_controll.xml} z katalogu kolekcji: ${edge_paths_with_PE_controll_paths_temp} "/>
|
|
|
<delete file="${edge_paths_with_PE.xml}"/>
|
|
|
|
|
|
- <xslt basedir="./" style="${edge_paths_with_PE_controll_to_PE.xsl}" in="${edge_paths_with_PE_controll.xml}" destdir="./" out="${edge_paths_with_PE.xml}" >
|
|
|
+ <!--<fileset id="edge_paths_with_PE.xml_collection" dir="${edge_paths_with_PE_controll_paths_temp}" includes="*.xml"/>-->
|
|
|
+ <xslt basedir="./" style="${edge_paths_with_PE_controll_to_PE_collection.xsl}" in="${edge_joins.xml}" destdir="./" out="${edge_paths_with_PE.xml}" >
|
|
|
+ <!--<fileset refid="edge_paths_with_PE.xml_collection"/>-->
|
|
|
<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>
|
|
|
+ <param name="edge_paths_with_PE_controll_paths_temp" expression="${edge_paths_with_PE_controll_paths_temp}"/>
|
|
|
<classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
- <!--<param name="edge_paths_with_PE.xml" expression="${edge_paths_with_PE.xml}"/>
|
|
|
- <param name="edge_paths_with_PE_controll_temp" expression="${edge_paths_with_PE_controll_temp}"/>
|
|
|
- <param name="edge_paths_with_PE_controll_temp.alias" expression="${edge_paths_with_PE_controll_temp.alias}"/>-->
|
|
|
</xslt>
|
|
|
</target>
|
|
|
|
|
|
@@ -363,6 +526,11 @@
|
|
|
<!--<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-->
|
|
|
</factory>
|
|
|
<classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
+ <param name="edge_paths_with_PE.xml" expression="${edge_paths_with_PE.xml}"/>
|
|
|
+ <param name="joins_asText_xml.xml" expression="${joins_asText_xml.xml}"/>
|
|
|
+ <param name="edge_joins_filled_paths.xml" expression="${edge_joins_filled_paths.xml}"/>
|
|
|
+ <param name="points2joins.xml" expression="${points2joins.xml}"/>
|
|
|
+ <param name="edge_joins_filled_paths" expression="${edge_joins_filled_paths}"/>
|
|
|
<!--<param name="dita_task_template_file_param" expression="main.dita"/>-->
|
|
|
</xslt>
|
|
|
</target>
|
|
|
@@ -409,7 +577,62 @@
|
|
|
</target>-->
|
|
|
|
|
|
<!--<target name="install_file_and_exec"/>-->
|
|
|
-
|
|
|
+ <!--sh#: ant bootstrap -Darg1=value1 -Darg2=value2 -Darg3=value3
|
|
|
+ or
|
|
|
+ sh#: ant bootstrap -Dargs=value1,value2,value3,...
|
|
|
+
|
|
|
+ <target name="bootstrap">
|
|
|
+ <echo>${arg0} ${arg1} ${arg2} </echo>
|
|
|
+ <exec executable="cmd">
|
|
|
+ <arg value="${arg0}"/>
|
|
|
+ <arg value="${arg1}"/>
|
|
|
+ <arg value="${arg2}"/>
|
|
|
+ </exec>
|
|
|
+ </target>
|
|
|
+
|
|
|
+ -->
|
|
|
+
|
|
|
+ <!--<taskdef uri="antlib:net.sf.antcontrib" resource="net/sf/antcontrib/antlib.xml" classpath="path/to/ant-contrib.jar"/>-->
|
|
|
+
|
|
|
+ <!-- How to pass parameter to ant scripts?
|
|
|
+
|
|
|
+ Using Java System Property
|
|
|
+
|
|
|
+ You can pass a variable as a JVM argument. Assuming you have a variable named "screenShotRoot" defined like this
|
|
|
+
|
|
|
+ ant -DscreenShotRoot=/screenshots/testcases
|
|
|
+ you can read it in your build.xml like this
|
|
|
+
|
|
|
+ <property name="screenshot.root" value="${screenShotRoot}" />
|
|
|
+ Your ANT task can then use this root path to generate appropriate paths to your PNG files on the date expected.
|
|
|
+
|
|
|
+ See this Apache ANT FAQ page
|
|
|
+
|
|
|
+ Using Environment Variables
|
|
|
+
|
|
|
+ You can also use Operating System environment variables, by setting them before calling your script. Assuming you have an environment variable named "screenShotRoot" defined like this on Windows
|
|
|
+
|
|
|
+ SET screenShotRoot=/screenshots/testcases
|
|
|
+ you can read it in your build.xml like this
|
|
|
+
|
|
|
+ <property environment="env"/>
|
|
|
+ <property name="screenshot.root" value="${env.screenShotRoot}" />
|
|
|
+ Using Properties Files
|
|
|
+
|
|
|
+ You could also write your links into a properties file that your ANT script loads, like this
|
|
|
+
|
|
|
+ <property file="build.properties"/>-->
|
|
|
+
|
|
|
+ <!--<property name="biale_plamy-prepare_sql_data.php" value="biale_plamy-prepare_sql_data.php"/>-->
|
|
|
+
|
|
|
+ <target name="mail_inform">
|
|
|
+
|
|
|
+ <echo message="informujemy o kompletnej pracy"/>
|
|
|
+ <exec executable="mail" failonerror="true" dir=".">
|
|
|
+ <arg value="echo 'ant task done | mail ${mail_inform}'"/>
|
|
|
+ </exec>
|
|
|
+ </target>
|
|
|
+
|
|
|
|
|
|
|
|
|
<target name="check-info" if="test_if_INPUTxml">
|