|
|
@@ -1,5 +1,6 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
-<project basedir="." name="PRINT_TEMPLATE" default="buildpdf_recursed" >
|
|
|
+<project basedir="." name="recurse_ant" default="buildpdf_recursed" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
+ xmlns:xs="http://www.w3.org/2001/XMLSchema" >
|
|
|
<description>
|
|
|
Umowa
|
|
|
</description>
|
|
|
@@ -61,12 +62,14 @@
|
|
|
|
|
|
<property name="ignore_maxOccurs_0" value="1"/> <!-- When element has maxOccurs=0 do not try to retrieve him to limit tree -->
|
|
|
|
|
|
- <property name="loop_path_recurs" value=""/> <!-- w przypadku podania, system powinien w tym katalogu zapisywac wynik xml dzialania, azeby odbudowac rekursywne drzewo - zapisujemy po system_cache__appinfo:id np bedzie ${temp}/${uuid}_CRM_PROCES___d14e4479-1_PROCES_BEN/ -->
|
|
|
+ <!-- DO NOT SET --><property name="loop_path_recurs" value=""/> <!-- w przypadku podania, system powinien w tym katalogu zapisywac wynik xml dzialania, azeby odbudowac rekursywne drzewo - zapisujemy po system_cache__appinfo:id np bedzie ${temp}/${uuid}_CRM_PROCES___d14e4479-1_PROCES_BEN/ -->
|
|
|
+ <!-- DO NOT SET --><property name="parallel_pos" value="1"/>
|
|
|
<!--<property name="temp_name" value="temp" />--> <!-- temp files-->
|
|
|
- <property name="parallel_pos" value="1"/><property name="temp" value="${default_db:recurse_ant_basedir.temp}${loop_path_recurs}" /> <!-- temp files-->
|
|
|
+ <property name="temp" value="${default_db:recurse_ant_basedir.temp}${loop_path_recurs}" /> <!-- temp files-->
|
|
|
<property name="xpath_query.xsl" value="${default_db:recurse_ant_basedir.temp}/${uuid}.xpath_query.xsl"/>
|
|
|
<property name="build_recurse_ant_xpath_query.xsl" value="${default_db:recurse_ant_basedir.temp}/build_recurse_ant_xpath_query.xsl"/>
|
|
|
- <property name="process_locks" value="${default_db:recurse_ant_basedir.temp}/.locks"/><property name="empty.xml" value="${temp}/${uuid}.empty.xml"/>
|
|
|
+ <property name="process_locks" value="${default_db:recurse_ant_basedir.temp}/.locks"/>
|
|
|
+ <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 -->
|
|
|
|
|
|
@@ -79,11 +82,20 @@
|
|
|
<property name="out_task.dita.final_with_RelatedFeatureLoop" value="${default_db:recurse_ant_basedir}/out/${uuid}.out_task.dita.final_with_RelatedFeatureLoop" />
|
|
|
|
|
|
<property name="ant-launcher.jar" location="/opt/local/share/java/apache-ant/lib/ant-launcher.jar"/><!-- should be also set in parent build -->
|
|
|
+ <property name="build_check_java_process_count.xml" value="${basedir}/../check_java_process_count/build_check_java_process_count.xml"/>
|
|
|
+ <property name="parallel_java_process_max" value="20"/> <!-- to limit max processes in parallel concurent tasks jobs - will use ${build_check_java_process_count.xml} -->
|
|
|
<!-- do zrobienia -->
|
|
|
<!--<tempfile property="wfs_output" deleteonexit="no" destdir="temp" suffix=".xml" />-->
|
|
|
+ <property name="get_wfs_basedir" location="${default_db:recurse_ant_basedir}/../../get_wfs"/>
|
|
|
+ <property name="get_wfs" location="${get_wfs_basedir}/build_get_wfs.xml"/>
|
|
|
|
|
|
-
|
|
|
+ <property name="build_CRM_PROCES_tree" location="${default_db:recurse_ant_basedir}/../CRM_PROCES_tree/build_CRM_PROCES_tree.xml"/>
|
|
|
+ <property name="CRM_PROCES_tree_basedir" location="${default_db:recurse_ant_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"/>
|
|
|
|
|
|
+ <!--<echo>#93 $typeName= ${typeName}; $xpath= ${xpath}; $xpath_value= ${xpath_value} </echo>-->
|
|
|
|
|
|
<!--<echo> $basedir=${basedir};
|
|
|
$temp=${temp};
|
|
|
@@ -91,14 +103,6 @@
|
|
|
</echo>-->
|
|
|
|
|
|
<!-- uuid -->
|
|
|
- <property name="build_check_java_process_count.xml" value="${basedir}/../check_java_process_count/build_check_java_process_count.xml"/>
|
|
|
- <property name="parallel_java_process_max" value="20"/> <!-- to limit max processes in parallel concurent tasks jobs - will use ${build_check_java_process_count.xml} -->
|
|
|
- <!-- do zrobienia -->
|
|
|
- <!--<tempfile property="wfs_output" deleteonexit="no" destdir="temp" suffix=".xml" />-->
|
|
|
- <property name="get_wfs_basedir" location="${default_db:recurse_ant_basedir}/../../get_wfs"/>
|
|
|
- <property name="get_wfs" location="${get_wfs_basedir}/build_get_wfs.xml"/>
|
|
|
-
|
|
|
- <property name="build_CRM_PROCES_tree" location="${default_db:recurse_ant_basedir}/../CRM_PROCES_tree/build_CRM_PROCES_tree.xml"/>
|
|
|
<property name="CRM_PROCES_tree_basedir" location="${default_db:recurse_ant_basedir}/../CRM_PROCES_tree" />
|
|
|
<property name="CRM_PROCES_tree_basedir.temp" location="${CRM_PROCES_tree_basedir}/temp" />
|
|
|
|
|
|
@@ -314,6 +318,7 @@
|
|
|
<!--<echo message="OUTPUT__END"/>-->
|
|
|
</target>
|
|
|
|
|
|
+
|
|
|
<target name="mkdir_process_locks">
|
|
|
<mkdir dir="${process_locks}"/>
|
|
|
</target>
|
|
|
@@ -350,12 +355,7 @@
|
|
|
<echo message="OUTPUT__END"/>
|
|
|
</target>
|
|
|
|
|
|
- <!-- #### eof tr_map #### -->
|
|
|
-
|
|
|
-
|
|
|
- <!-- ### php_session_id ### -->
|
|
|
-
|
|
|
- <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop_tree_to_dita" depends="xml_recursed_from_tr_map_with_RelatedFeatureLoop" description="URL_TASK Wygeneruj druk z obiektu uzywajac styli systemowych">
|
|
|
+ <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop_tree_to_dita" depends="xml_recursed_from_tr_map_with_RelatedFeatureLoop" description="URL_TASK Wygeneruj druk z obiektu uzywajac styli systemowych">
|
|
|
|
|
|
<ant antfile="${build_CRM_PROCES_tree}" target="default_db:PROCES_INIT:tree:dita" inheritall="false">
|
|
|
<property name="uuid" value="${uuid}"/>
|
|
|
@@ -378,7 +378,11 @@
|
|
|
<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="php_session_id_cond">
|
|
|
+ </target>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <target name="php_session_id_cond">
|
|
|
<condition property="php_session_id_fail" taskname="php_session_id_check">
|
|
|
<or>
|
|
|
<equals arg1="${php_session_id}" arg2=""/>
|
|
|
@@ -424,8 +428,10 @@
|
|
|
<property name="build_recurse_ant_merge_dita_from_temp.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_merge_dita_from_temp.xsl"/>
|
|
|
<property name="builds_to_ant.xsl" value="${default_db_xml_cache.public}/builds_to_ant.xsl"/>
|
|
|
<property name="xpath_query_check_create_xsl.xsl" value="${default_db_xml_cache.public}/xpath_query_check_create_xsl.xsl"/>
|
|
|
- <property name="build_recurse_ant_xsl_xpath_filter.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_xsl_xpath_filter.xsl"/><property name="recurse_ant_to_html.xsl" value="${default_db_xml_cache.public}/recurse_ant_to_html.xsl"/>
|
|
|
- <property name="recurse_ant_to_html.xsl" value="${default_db_xml_cache.public}/recurse_ant_to_html.xsl"/></target>
|
|
|
+ <property name="build_recurse_ant_xsl_xpath_filter.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_xsl_xpath_filter.xsl"/>
|
|
|
+ <property name="recurse_ant_to_html.xsl" value="${default_db_xml_cache.public}/recurse_ant_to_html.xsl"/>
|
|
|
+ <property name="recurse_ant_to_html.xsl" value="${default_db_xml_cache.public}/recurse_ant_to_html.xsl"/>
|
|
|
+ </target>
|
|
|
|
|
|
<target name="check_default_db_xml_cache.public_default" depends="set_default_db_xml_cache.public_local" unless="${set_default_db_xml_cache.public_local}">
|
|
|
<echo> Ustawiamy ${basedir}/../../../default_db_xml_cache.public</echo>
|
|
|
@@ -434,7 +440,8 @@
|
|
|
<property name="build_recurse_ant_merge_dita_from_temp.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_merge_dita_from_temp.xsl"/>
|
|
|
<property name="builds_to_ant.xsl" value="${default_db_xml_cache.public}/builds_to_ant.xsl"/>
|
|
|
<property name="xpath_query_check_create_xsl.xsl" value="${default_db_xml_cache.public}/xpath_query_check_create_xsl.xsl"/>
|
|
|
- <property name="build_recurse_ant_xsl_xpath_filter.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_xsl_xpath_filter.xsl"/><property name="recurse_ant_to_html.xsl" value="${default_db_xml_cache.public}/recurse_ant_to_html.xsl"/>
|
|
|
+ <property name="build_recurse_ant_xsl_xpath_filter.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_xsl_xpath_filter.xsl"/>
|
|
|
+ <property name="recurse_ant_to_html.xsl" value="${default_db_xml_cache.public}/recurse_ant_to_html.xsl"/>
|
|
|
</target>
|
|
|
|
|
|
|
|
|
@@ -514,9 +521,18 @@
|
|
|
<classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
<param name="xpath_query" expression="[1=1]"/>
|
|
|
</xslt>
|
|
|
+ <!--<copyfile src="${build_recurse_ant.xsl}" dest="${build_recurse_ant_xpath_query.xsl}"/>-->
|
|
|
+ <!--<xslt basedir="${default_db:recurse_ant_basedir}" style="${xpath_query_check_create_xsl.xsl}" in="${empty.xml}" destdir="./" out="${xpath_query.xsl}_secondary.xsl" >
|
|
|
+ <factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
+ <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
+ <attribute name="http://saxon.sf.net/feature/initialTemplate" value="xpath_query_check_create_xsl"/>
|
|
|
+ </factory>
|
|
|
+ <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
+ <param name="xpath_query" expression="[1=1]"/>
|
|
|
+ </xslt>-->
|
|
|
</target>
|
|
|
|
|
|
- <!-- wygenerowanie ant builda do sciagniecia niezbednego elementu na podstawie template main.dita i tam zagniezdzonego RelatedFeature-->
|
|
|
+
|
|
|
<target name="build_recurse_ant_xsl_xpath_filter.xsl_check" description="if it is set ">
|
|
|
<condition taskname="build_recurse_ant_xsl_xpath_filter.xsl" property="xpath_query_set">
|
|
|
<or>
|
|
|
@@ -554,11 +570,16 @@
|
|
|
<param name="xpath_query" expression="${xpath_query}"/>
|
|
|
<param name="default_db_xml_cache.public" expression="${default_db_xml_cache.public}"/>
|
|
|
</xslt>
|
|
|
- </target><target name="build_recurse_ant.xml" depends="php_session_id_check,xpath_query.xsl,xpath_query.xsl_fail,main_build_recurse_ant.dita_with_id,main_build_recurse_ant.tr_map_with_id">
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <!-- wygenerowanie ant builda do sciagniecia niezbednego elementu na podstawie template main.dita i tam zagniezdzonego RelatedFeature-->
|
|
|
+ <target name="build_recurse_ant.xml" depends="php_session_id_check,xpath_query.xsl,xpath_query.xsl_fail,main_build_recurse_ant.dita_with_id,main_build_recurse_ant.tr_map_with_id">
|
|
|
<!-- build do wytworzenia pierwszego przetworzenia zagniezdzen -->
|
|
|
<property name="loop_xpath" value="root" />
|
|
|
<property name="build_recurse_ant.xml" value="${temp}/${uuid_tested}.build_${loop_xpath}.xml" />
|
|
|
<echo>#113 ant build_recurse_ant.xml=${build_recurse_ant.xml}; </echo>
|
|
|
+ <!--<record name="ant.log" loglevel="verbose" append="true" />-->
|
|
|
+ <!--<delete file="${build_recurse_ant.xml}"/>-->
|
|
|
<xslt basedir="${default_db:recurse_ant_basedir}" style="${build_recurse_ant_xpath_query.xsl}" in="${main_build_recurse_ant.dita_with_id}" destdir="./" out="${build_recurse_ant.xml}" >
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
@@ -599,7 +620,7 @@
|
|
|
<param name="simpleSchema_dir" expression="${simpleSchema_dir}"/>
|
|
|
<param name="default_db_xml_cache.public" expression="${default_db_xml_cache.public}"/>
|
|
|
<param name="ant-launcher.jar" expression="${ant-launcher.jar}"/>
|
|
|
- <param name="build_check_java_process_count.xml" expression="${build_check_java_process_count.xml}"/>
|
|
|
+ <param name="build_check_java_process_count.xml" expression="${build_check_java_process_count.xml}"/>
|
|
|
<param name="parallel_java_process_max" expression="${parallel_java_process_max}"/>
|
|
|
<param name="debug_xsl_in_filename" expression="${main_build_recurse_ant.dita_with_id}"/>
|
|
|
<param name="debug_xsl_out_filename" expression="${build_recurse_ant.xml}"/>
|
|
|
@@ -608,8 +629,12 @@
|
|
|
<param name="process_locks" expression="${process_locks}"/>
|
|
|
<param name="get_wfs" expression="${get_wfs}"/>
|
|
|
</xslt>
|
|
|
- <ant antfile="${build_recurse_ant.xml}" dir="." ><property name="parallel_pos" value="${parallel_pos}"/>
|
|
|
+ <!--<import file="${build_recurse_ant.xml}"/>-->
|
|
|
+ <!--<record action="stop" name="ant.log"/>-->
|
|
|
+ <ant antfile="${build_recurse_ant.xml}" dir="." >
|
|
|
+ <property name="parallel_pos" value="${parallel_pos}"/> <!-- To discrete parallel tasks in tempfiles creation errors etc -->
|
|
|
</ant>
|
|
|
+
|
|
|
<!-- pozbierac wszystkie do kupy xmle -->
|
|
|
</target>
|
|
|
|
|
|
@@ -644,7 +669,12 @@
|
|
|
<param name="temp" expression="${temp}"/>
|
|
|
<param name="simpleSchema_dir" expression="${simpleSchema_dir}"/>
|
|
|
</xslt>
|
|
|
- <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita.final}. </echo>
|
|
|
+ <echo> *************************************************************************
|
|
|
+ * #573 FIHISHED NODE-LOOP in SAVED TO BE MERGED BY MERGE
|
|
|
+ * $temp is ${temp}
|
|
|
+ * Saved to ${out_task.dita.final} .
|
|
|
+ *************************************************************************
|
|
|
+ </echo>
|
|
|
</target>
|
|
|
|
|
|
<target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop_html" depends="xml_recursed_from_tr_map" description="URL_TASK Pobierz HTML obiektu">
|
|
|
@@ -714,6 +744,7 @@
|
|
|
|
|
|
|
|
|
<target name="buildpdf_recursed" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,php_session_id_check,mkdir_process_locks,build_recurse_ant_xsl_xpath_filter.xsl,check_dita" if="${test_if_dita}">
|
|
|
+
|
|
|
<exec executable="${dita.dir}" dir=".">
|
|
|
<arg value="-i"/>
|
|
|
<arg value="${out_task.dita.final}" />
|