Просмотр исходного кода

in progess generate ant raport

a.binder 8 лет назад
Родитель
Сommit
a98e1858b3

+ 106 - 0
SE/schema/ant-url_action/default_db.bi_audit_energa_rum_kontrahenci_powiazania/bi_audit_energa_rum_kontrahenci_powiazania/build_bi_audit_energa_rum_kontrahenci_powiazania.xml

@@ -0,0 +1,106 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." name="bi_audit_energa_rum_kontrahenci_powiazania" default="bi_audit_energa_rum_kontrahenci_powiazania"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema" >
+    <description>
+        Generowanie raportu z ant url action dla audytu z katalogu afp://biuro.biall-net.pl/BI_audit_POWIAZANIA/BI_audit_POWIAZANIA.$ID
+    </description>
+    
+    
+    <!---DpasswordBase64Basic="xxxx=="
+        -DtypeName="p5_default_db:IN7_DZIENNIK_KORESP" 
+        -Dxpath=ID -Dxpath_value=1000 
+        -Duuid=1 -DwebRootUrl=somePathDir-->
+    <property name="basedir"  location="${basedir}" /> <!-- do ustalenia glownego katalogu -->
+    <property name="temp"  location="${basedir}/temp" />
+    <property name="out"  location="${basedir}/out" />
+    
+    
+    <property name="uuid" value="${uuid}"/> <!--TODO-->
+    <property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
+    <property name="php_session_id" value="${php_session_id}"/> <!-- optional cookie if sent work with it if not - get it -->
+    <property name="url" value="${url}"/>
+    <property name="webRootUrl" value="${$webRootUrl}"/>
+
+    
+    <property name="namespace_prefix" value="p5_default_db"/> <!-- ex: p5_default_db to complete after p5_default_db:IN7_DZIENNIK_KORESP -->
+    <property name="namespace_prefix_p5_tr_map" value="default_db"/> <!-- do przetowrzenia w nazwie pliku docelowej element-default_db__x3A__CRM_PROCES__x3A__CRM_PROCES oraz dla detect_resource_type_dir -->
+    <property name="typeName" value="${typeName}" /> <!-- to be set initially ex: p5_default_db:IN7_DZIENNIK_KORESP - be careful not to give it in apostrophs like 'p5_default_db:IN7_DZIENNIK_KORESP' - it wont work! -->
+  
+  
+  
+  
+    <property name="empty.xml" value="${temp}/${uuid}.empty.xml"/>
+    <!-- variables to first transform of doc for then get related features -->
+    <!--<property name="default_db_xml_cache.public" value="../../../default_db_xml_cache.public"/>--> <!-- katalog z xsl z projektu src-xmlschema.git -->
+    
+    <!--<tempfile property="uuid" deleteonexit="yes"/>-->
+   
+    <property name="build_CRM_PROCES_tree" location="${basedir}/../CRM_PROCES_tree/build_CRM_PROCES_tree.xml"/>
+    <property name="CRM_PROCES_tree_basedir" location="${basedir}/../CRM_PROCES_tree"  />                         
+    <property name="CRM_PROCES_tree_basedir.temp" location="${CRM_PROCES_tree_basedir}/temp"  />
+    
+    <property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>
+    
+  
+    <target name="install_folders">
+        <mkdir dir="${temp}"/>
+        <mkdir dir="${out}"/>
+        <chmod  dir="${temp}" perm="ugo+rwx"/>
+        <chmod  dir="${out}" perm="ugo+rwx"/>
+    </target>
+
+
+
+    <target name="check_default_db_xml_cache.public_default"  unless="${set_default_db_xml_cache.public_local}">
+        <echo> Ustawiamy ${basedir}/../../../default_db_xml_cache.public (chyba domylsnie) </echo>
+        <property name="default_db_xml_cache.public" value="${basedir}/../../../default_db_xml_cache.public"/>
+    </target>
+   
+   
+    <target name="bi_audit_energa_rum_kontrahenci_powiazania"  depends="check_default_db_xml_cache.public_default" description="URL_TASK Wygeneruj druk bi_audit_energa_rum_kontrahenci_powiazania">
+        
+        <ant antfile="${build_CRM_PROCES_tree}" target="default_db:PROCES_INIT:tree:dita" inheritall="false">
+            <property name="uuid" value="${uuid}"/>
+            <property name="default_db:recurse_ant_basedir.out" value="${default_db:recurse_ant_basedir}/out"/>
+        </ant>
+        
+        <exec executable="${dita.dir}" dir=".">
+            <arg value="-i"/>
+            <arg value="${CRM_PROCES_tree_basedir.temp}/${uuid}/${uuid}.ditamap" />
+            <!-- <arg value="-t" />
+            <arg value="temp" />-->
+            <arg value="-f" />
+            <arg value="pdf"/>
+            <arg value="-o"/>
+            <arg value="${out}"/>
+        </exec>
+        
+        <echo message="OUTPUT__START"/>
+        <echo>
+            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&lt;/a&gt;&lt;/br&gt; 
+        </echo>
+        <echo message="OUTPUT__END"/>
+    </target>
+   
+   
+    
+   
+   
+    <target name="clean_temp_dir" description="URL_TASK Wyczyść cache modułu ">
+        <!--<delete includeemptydirs="yes" failonerror="false">
+            <fileset dir="${default_db:recurse_ant_basedir.temp}"/>
+        </delete>-->    
+        <delete dir="${temp}" failonerror="false"/>
+        <echo message="OUTPUT__START"/>   
+        <echo>&lt;br&gt;Skasowano pliki tymczasowe&lt;/br&gt;</echo>         
+        <echo message="OUTPUT__END"/>
+        <antcall target="install_folders"/>
+    </target>
+    
+    
+
+
+
+    
+    
+</project>

+ 4 - 4
SE/schema/build.xml

@@ -478,7 +478,7 @@
         <!-\-<antcall target="build_simpleSchema_for_recurse_ant"/> <!-\\- to wystarczy - wyzwala sie kolejno po dependency -\\->-\->
     </target>-->
     
-    <target name="sync_p5_tr_map_with_se" depends=" save_build_properties,read_build_properties,new-schema-with-ID-to-move-and-rename-to-xsd,build_simpleSchema_for_recurse_ant,p5_make_symlink_to_work_in_default_db.in7_dziennik_koresp" description="syncrhonizacja wygenerowanych map z default_db.instance/p5_tr_map do SE/schema/public_instance/p5_tr_map">
+    <target name="sync_p5_tr_map_with_se" depends=" save_build_properties,read_build_properties,new-schema-with-ID-to-move-and-rename-to-xsd,build_simpleSchema_for_recurse_ant,p5_make_symlink_to_work_in_default_db.in7_dziennik_koresp,p5_make_symlink_to_work_in_default_db.bi_audit_energa_rum_kontrahenci_powiazania" description="syncrhonizacja wygenerowanych map z default_db.instance/p5_tr_map do SE/schema/public_instance/p5_tr_map">
         <delete dir="${p5_tr_map.remote}" failonerror="no"/>
         <!--<copydir src="${p5_tr_map.local}" dest="${p5_tr_map.remote}" />-->
         <mkdir dir="${p5_tr_map.remote}"/>
@@ -506,7 +506,7 @@
     
     
     <target  name="p5_make_symlink_to_work_in_default_db.in7_dziennik_koresp" description="temporary to allow work with paths cheating and create on SE/schema/default_db.in7_dziennik_koresp symlink to ../WPS_Functions/get_wfs/ etc...">
-        <echo> ln -s ${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree/CRM_PROCES_tree ../../WPS_Functions/default_db/CRM_PROCES_tree</echo>
+        <echo> ln -s ${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree ../../WPS_Functions/default_db/CRM_PROCES_tree</echo>
         <!--<exec executable="ln" dir="${default_db.instance.xml.symlink}/CRM_PROCES_tree" >
             <arg  line="-s ../WPS_Functions/default_db/CRM_PROCES_tree"/>
         </exec>-->
@@ -514,7 +514,7 @@
     </target>
     
     <target  name="p5_make_symlink_to_work_in_default_db.bi_audit_energa_rum_kontrahenci_powiazania" description="temporary to allow work with paths cheating and create on SE/schema/default_db.bi_audit_energa_rum_kontrahenci_powiazania symlink to ../WPS_Functions/get_wfs/ etc...">
-        <echo> ln -s ${remote.default_db.bi_audit_energa_rum_kontrahenci_powiazania}/CRM_PROCES_tree/CRM_PROCES_tree ../../WPS_Functions/default_db/CRM_PROCES_tree</echo>
+        <echo> ln -s ${remote.default_db.bi_audit_energa_rum_kontrahenci_powiazania}/CRM_PROCES_tree ../../WPS_Functions/default_db/CRM_PROCES_tree</echo>
         <mkdir dir="${remote.default_db.bi_audit_energa_rum_kontrahenci_powiazania}"/>
-        <symlink link="${remote.default_db.in7_dziennik_koresp}/CRM_PROCES_tree" resource="../../WPS_Functions/default_db/CRM_PROCES_tree" overwrite="true"/>
+        <symlink link="${remote.default_db.bi_audit_energa_rum_kontrahenci_powiazania}/CRM_PROCES_tree" resource="../../WPS_Functions/default_db/CRM_PROCES_tree" overwrite="true"/>
     </target></project>