|
@@ -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>
|
|
|
|
|
+ <br>Wygenerowano wyjsciowy plik XML - sciagnij go <a href="${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml" target="_blank"> "${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml</a></br>
|
|
|
|
|
+ </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><br>Skasowano pliki tymczasowe</br></echo>
|
|
|
|
|
+ <echo message="OUTPUT__END"/>
|
|
|
|
|
+ <antcall target="install_folders"/>
|
|
|
|
|
+ </target>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+</project>
|