Przeglądaj źródła

dodana metoda na bzyka klasie

a.binder 9 lat temu
rodzic
commit
c9eae2c34b
1 zmienionych plików z 23 dodań i 8 usunięć
  1. 23 8
      SE/dev/php-cli/build__biale_plamy.xml

+ 23 - 8
SE/dev/php-cli/build__biale_plamy.xml

@@ -1,11 +1,12 @@
 <?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="iale_plamy-generate_data_by_nosql">
     <!-- 
     
     
     -->
+    <property name="biale_plamy_class.php" value="biale_plamy_class.php"/>
     <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"/>
@@ -41,12 +42,9 @@
     </target>
     
     <target name="biale_plamy-generate_data" >
-        
-         
-        <!--<antcall target="biale_plamy_prepare_mysql_data"/>-->
-        
+        <!-- stary sposob -->
+        <antcall target="biale_plamy_prepare_mysql_data"/>        
         <antcall target="biale_plamy-generate_data_sql"/>
-        
         <echo message="odpalam biale_plamy-generate_data "/>
         <delete file="${joins2ways_z_ID_Way.xml}"/>
         <antcall target="biale_plamy_points2ID_Way_do_Joins"/>
@@ -54,9 +52,19 @@
         <antcall target="biale_plamy_joins2ways_do_paths"/>
         <!-- tymczasowy rem bo dziala -->
         <antcall target="biale_plamy_paths_to_findways_php"/>
-        
         <antcall target="PE_and_Cables"/>
-        
+    </target>
+    
+    
+    
+    <target name="biale_plamy-generate_data_by_nosql">
+        <!-- nowy sposob -->
+        <antcall target="biale_plamy_prepare_php_data_by_class"/>  <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"/>
+        <antcall target="biale_plamy_paths_to_findways_php"/>
+        <antcall target="PE_and_Cables"/>
     </target>
     
     <target name="clean">
@@ -109,6 +117,13 @@
         </exec>
     </target>
     
+    <target name="biale_plamy_prepare_php_data_by_class">
+        <echo message=" przygotowuje punkty xpoint przez biale_plamy_class.php"/>
+        <exec executable="php" failonerror="true" dir=".">
+            <arg file="${biale_plamy_class.php}"/>
+        </exec>
+    </target>
+   
    
    
     <target name="biale_plamy-generate_data_sql">