| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531 |
- <?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="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="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"/>
- <property name="ways_as_Text_z_ID_xml.xml" value="ways_as_Text_z_ID_xml.xml"/>
-
- <property name="biale_plamy_class_findWay.php" value="biale_plamy_class_findWay.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="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="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="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="points_asText.xml" value="points_asText.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_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.alias" value="edge_paths_with_PE_controll_temp.alias"/>
-
- <property name="edge_paths_with_PE_controll.xml" value="edge_paths_with_PE_controll.xml"/>
-
- <property name="edge_paths_with_PE.xml" value="edge_paths_with_PE.xml"/><!-- biale_plamy_from_paths_php_to_place_PE-->
-
- <property name="biale_put_PE_to_mysql.php" value="biale_put_PE_to_mysql.php"/>
-
- <property name="cables_from_joins_to_PE.xsl" value="cables_from_joins_to_PE.xsl"/>
- <property name="cables_from_joins_to_PE.xml" value="cables_from_joins_to_PE.xml"/><!-- xml do wygenerowania -->
-
- <property name="biale_put_Cables_to_PE.php" value="biale_put_Cables_to_PE.php"/>
-
-
- <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 edge_paths_with_PE_controll.xml edge_paths_with_PE.xml biale_plamy_put_PE_to_mysql_php
-
-
- 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} )
-
-
-
-
- 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">
- <available file="${INPUT}" filepath="." />
- </condition>
- </target>
-
-
- <target name="biale_plamy-generate_data">
- <!-- nowy sposob -->
- <antcall target="biale_plamy_class_regenerate.php"/>
-
- <delete file="${joins2ways_z_ID_Way.xml}"/>
- <antcall target="joins2ways_z_ID_Way.xml"/>
-
- <antcall target="AsTextToXml"/>
-
- <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>
-
-
-
-
- <target name="biale_plamy-just_xsl_PE_cables">
- <!-- nowy sposob -->
-
- <delete file="${joins2ways_z_ID_Way.xml}"/>
- <antcall target="joins2ways_z_ID_Way.xml"/>
-
- <antcall target="AsTextToXml"/>
-
- <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>
-
- <target name="AsTextToXml">
- <delete file="${ways_as_Text_z_ID_xml.xml}"/>
- <antcall target="ways_as_Text_z_ID_xml.xml"/>
-
- <delete file="${joins_asText_xml.xml}"/>
- <antcall target="joins_asText_xml.xml"/>
- </target>
-
-
- <target name="clean">
- <delete file="${joins2ways_z_ID_Way.xml}"/>
- <delete file="${edge_joins_filled_paths.xml}"/>
- <delete file="${edge_paths_with_PE.xml}"/>
- <delete file="${cables_from_joins_to_PE.xml}"/>
- <delete file="${joins_asText_xml.xml}"/>
- <delete file="${ways_as_Text_z_ID_xml.xml}"/>
- </target>
-
- <target name="clean_input">
- <delete file="${points2ID_Way.xml}"/>
- <delete file="${points2joins.xml}"/>
- <delete file="${ways2joins.xml}"/>
- <delete file="${ways_asText.xml}"/>
- <delete file="${joins_asText.xml}"/>
- <delete file="${edge_joins.xml}"/>
- <delete file="${joins2ways.xml}"/>
- <delete file="${ways2drogi.xmll}"/>
- <delete file="${points_asText.xml}"/>
- <delete file="${edge_joins.xml}"/>
- <delete file="${points2joins.xml}"/>
- </target>
-
-
- <target name="check_files_for_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="${edge_joins_filled_paths.xml}" filepath="." />
- <available file="${points_asText.xml}" filepath="." />
- <available file="${joins2ways_z_ID_Way.xml}" filepath="." />-->
- </condition>
- </target>
-
-
- <target name="PE_and_Cables" depends="check_files_for_PE_and_Cables">
- <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="cables_from_joins_to_PE.xml"/>
- <antcall target="biale_put_Cables_to_PE"/>
- </target>
-
-
- <target name="biale_plamy-prepare_sql_data.php">
- <echo message="biale_plamy_prepare_mysql_data - przygotowuje punkty xpoint"/>
- <exec executable="php" failonerror="true" dir=".">
- <arg file="${biale_plamy-prepare_sql_data.php}"/>
- </exec>
- </target>
-
-
-
-
-
- <target name="biale_plamy_class_regenerate.php">
- <!--<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_class_regenerate.php}"/>
- </exec>
- <echo message="Teraz Przelec arraya joins2ways pod katem 1-elementowych subarrayow"/>
- </target>
-
-
-
- <target name="joins2ways_z_ID_Way.xml">
- <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}" >
- <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="${ways2drogi.xml}"/>
- <param name="points2joins.xml" expression="${points2joins.xml}"/>
- <param name="points2ID_Way.xml" expression="${ways2drogi.xml}"/>
-
-
- </xslt>
- </target>
-
-
- <target name="joins_asText_xml.xml">
- <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}" >
- <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="points2joins.xml" expression="${points2joins.xml}"/>
- </xslt>
- </target>
-
-
- <target name="edge_joins.xml">
- <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}" >
- <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="ways_as_Text_z_ID_xml.xml">
- <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}" >
- <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="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">
- <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}"/>
- <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"/>
- <!--<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="ways_as_Text_z_ID_xml.xml" expression="${ways_as_Text_z_ID_xml.xml}"/>
- <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}"/>
- </xslt>
- </target>
-
- <target name="biale_put_xml_paths_to_mysql.php">
- <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}"/>
- </exec>
- </target>
-
- <target name="biale_plamy_class_findWay.php">
- <!-- to jest szukanie path mega wolne -->
- <exec executable="php" failonerror="true" dir=".">
- <arg file="${biale_plamy_class_findWay.php}"/>
- </exec>
- <!-- to wyrzuca edge_joins_filled_paths.xml-->
- </target>
-
-
-
- <!-- postawienie PE po trasach stare-->
- <target name="edge_paths_with_PE.xml_old">
- <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}" >
- <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>
- <!-- 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}
- 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}"/>
- <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="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.xml">
- <echo message="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_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_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>
-
- <target name="biale_plamy_put_PE_to_mysql_php">
- <exec executable="php" failonerror="true" dir=".">
- <arg file="${biale_put_PE_to_mysql.php}"/>
- </exec>
- </target>
-
- <!-- przeliczenie dla kazdego PE z trasy punktu przeciecia i wybranie najkrotszej i wygenerowania kabla -->
- <target name="cables_from_joins_to_PE.xml">
- <delete file="${cables_from_joins_to_PE.xml}"/>
- <xslt basedir="./" style="${cables_from_joins_to_PE.xsl}" in="${joins2ways_z_ID_Way.xml}" destdir="./" out="${cables_from_joins_to_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="dita_task_template_file_param" expression="main.dita"/>-->
- </xslt>
- </target>
-
-
- <target name="biale_put_Cables_to_PE">
- <echo message="Wgrywam Kable z pliku ${cables_from_joins_to_PE.xml} do bazy danych "></echo>
- <exec executable="php" failonerror="true" dir=".">
- <arg file="${biale_put_Cables_to_PE.php}"/>
- </exec>
- </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"/>-->
- <!--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="check-info" if="test_if_INPUTxml">
- <echo message="Using default XML object on input from file ${INPUT} . "/>
- </target>
-
-
- </project>
|