|
|
@@ -34,6 +34,10 @@
|
|
|
-Dxpath=ID -Dxpath_value=1000
|
|
|
-Duuid=1 -DwebRootUrl=somePathDir-->
|
|
|
<property name="basedir" value="${basedir}" /> <!-- do ustalenia glownego katalogu -->
|
|
|
+ <property name="default_db:recurse_ant_basedir" location="."/>
|
|
|
+ <property name="default_db:recurse_ant_basedir.temp" location="${default_db:recurse_ant_basedir}/temp"/>
|
|
|
+ <property name="default_db:recurse_ant" location="${default_db:recurse_ant}"/>
|
|
|
+
|
|
|
<property name="out" value="out"/> <!-- output ready files like pdf -->
|
|
|
<property name="p5_tr_map_dir" location="${basedir}/../../../default_db.instance.xml/p5_tr_map" />
|
|
|
<property name="simpleSchema_dir" location="${basedir}/../../../default_db.instance.xml/simpleSchema" />
|
|
|
@@ -58,20 +62,21 @@
|
|
|
<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/ -->
|
|
|
- <property name="temp_name" value="temp" /> <!-- temp files-->
|
|
|
- <property name="temp" value="${basedir}/${temp_name}${loop_path_recurs}" /> <!-- temp files-->
|
|
|
+ <!--<property name="temp_name" value="temp" />--> <!-- temp files-->
|
|
|
+ <property name="temp" value="${default_db:recurse_ant_basedir.temp}${loop_path_recurs}" /> <!-- temp files-->
|
|
|
|
|
|
- <property name="xpath_query.xsl" value="${basedir}/${temp_name}/${uuid}.xpath_query.xsl"/>
|
|
|
- <property name="empty.xml" value="${basedir}/${temp_name}/${uuid}.empty.xml"/>
|
|
|
+<property name="xpath_query.xsl" value="${default_db:recurse_ant_basedir.temp}/${uuid}.xpath_query.xsl"/>
|
|
|
+ <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="out_task.dita" value="${temp}/${uuid}.out_task_dita" />
|
|
|
<property name="out_task.dita.final" value="${temp}/${uuid}_out_task_dita_final.dita" />
|
|
|
- <property name="out_task.dita.final.html" value="${uuid}_out_task_dita_final.html" />
|
|
|
-<!-- dita -f html5 wywala kropki --> <property name="out_task.dita.final_with_RelatedFeatureLoop_no_path" value="${temp_name}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop" />
|
|
|
- <property name="out_task.dita.final_with_RelatedFeatureLoop" value="${temp}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop" />
|
|
|
+ <property name="out_task.dita.final.noext" value="${uuid}_out_task_dita_final" />
|
|
|
+ <property name="out_task.dita.final.html" value="${uuid}_out_task_dita_final.html" /> <!-- dita -f html5 wywala kropki -->
|
|
|
+ <property name="out_task.dita.final_with_RelatedFeatureLoop_no_path" value="${uuid}.out_task.dita.final_with_RelatedFeatureLoop" />
|
|
|
+ <property name="out_task.dita.final_with_RelatedFeatureLoop" value="${default_db:recurse_ant_basedir}/out/${uuid}.out_task.dita.final_with_RelatedFeatureLoop" />
|
|
|
|
|
|
<!-- do zrobienia -->
|
|
|
<!--<tempfile property="wfs_output" deleteonexit="no" destdir="temp" suffix=".xml" />-->
|
|
|
@@ -279,7 +284,7 @@
|
|
|
<antcall target="build_recurse_ant_merge_dita_from_temp.xsl_tr_map"/>
|
|
|
</target>
|
|
|
|
|
|
- <target name="xml_recursed_from_tr_map" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,check_tr_map" description="Buduje wyjsciowego XMLa na podstawie mapy transportowej dla zastosowan w API DEVEL">
|
|
|
+ <target name="xml_recursed_from_tr_map" depends="uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,check_tr_map" description="Buduje wyjsciowego XMLa na podstawie mapy transportowej dla zastosowan w API DEVEL">
|
|
|
<!--<echo message="OUTPUT__START"/>-->
|
|
|
|
|
|
<!-- TODO proba wlaczenia rekursywnosci zapisanie wezla do sciezki w folderze-->
|
|
|
@@ -308,7 +313,7 @@
|
|
|
<RelatedFeatureRoot>${out_task.dita.final_no_RelatedFeatureRoot}</RelatedFeatureRoot>
|
|
|
</echoxml>-->
|
|
|
|
|
|
- <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}" destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}.xml" >
|
|
|
+ <xslt basedir="${default_db:recurse_ant_basedir}" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}" destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}.xml" >
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
</factory>
|
|
|
@@ -345,13 +350,14 @@
|
|
|
<target name="php_session_id_ok" unless="${php_session_id_fail}" description="use php_session_id from parameter ">
|
|
|
<property name="php_session_id_tested" value="--cookie 'PHPSESSID=${php_session_id}'"/>
|
|
|
</target>
|
|
|
- <target name="php_session_id_fail" if="${php_session_id_fail}" description="retrieve php_session_id from API to use it after for fasten api requests ">
|
|
|
- <property name="cookie_file" value="${temp}/${uuid_tested}.cookie"/>
|
|
|
+ <target name="php_session_id_fail" if="${php_session_id_fail}" description="retrieve php_session_id from API to use it after for fasten api requests" depends="install_folders">
|
|
|
+ <property name="cookie_file" value="${default_db:recurse_ant_basedir.temp}/${uuid_tested}.cookie"/>
|
|
|
<exec executable="curl"> <!-- errorproperty="wfs_error" resultproperty="wfs_result" -->
|
|
|
<arg line=" -c ${cookie_file} -H 'Authorization: Basic ${passwordBase64Basic_tested}' "${api_url}""/> <!-- /default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetCapabilities" -->
|
|
|
</exec>
|
|
|
<property name="php_session_id_tested" value=" -b ${cookie_file}"/>
|
|
|
- <echo> #289 we set php_session_id_tested=(${php_session_id_tested}) </echo>
|
|
|
+ <echo> #289 we set php_session_id_tested=(${php_session_id_tested})
|
|
|
+ $cookie_file = ${cookie_file} </echo>
|
|
|
</target>
|
|
|
|
|
|
<!-- ### eof php_session_id ### -->
|
|
|
@@ -394,7 +400,7 @@
|
|
|
|
|
|
|
|
|
<target name="main_build_recurse_ant.dita_with_id" if="${test_if_dita}">
|
|
|
- <xslt basedir="./" style="${main_build_recurse_ant.dita_with_id.xsl}" in="${main_build_recurse_ant.dita}" destdir="./" out="${main_build_recurse_ant.dita_with_id}" >
|
|
|
+ <xslt basedir="${default_db:recurse_ant_basedir}" style="${main_build_recurse_ant.dita_with_id.xsl}" in="${main_build_recurse_ant.dita}" destdir="./" out="${main_build_recurse_ant.dita_with_id}" >
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
</factory>
|
|
|
@@ -445,7 +451,7 @@
|
|
|
<echoxml file="${empty.xml}">
|
|
|
<empty>empty</empty>
|
|
|
</echoxml>
|
|
|
- <xslt basedir="./" style="${xpath_query_check_create_xsl.xsl}" in="${empty.xml}" destdir="./" out="${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}" >
|
|
|
<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"/>
|
|
|
@@ -459,7 +465,7 @@
|
|
|
<echoxml file="${empty.xml}">
|
|
|
<empty>empty</empty>
|
|
|
</echoxml>
|
|
|
- <xslt basedir="./" style="${xpath_query_check_create_xsl.xsl}" in="${empty.xml}" destdir="./" out="${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}" >
|
|
|
<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"/>
|
|
|
@@ -477,7 +483,7 @@
|
|
|
<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="./" style="${build_recurse_ant.xsl}" in="${main_build_recurse_ant.dita_with_id}" destdir="./" out="${build_recurse_ant.xml}" >
|
|
|
+ <xslt basedir="${default_db:recurse_ant_basedir}" style="${build_recurse_ant.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"/>
|
|
|
</factory>
|
|
|
@@ -502,6 +508,9 @@
|
|
|
<param name="loop_xpath_save" expression="${loop_xpath}"/>
|
|
|
<param name="current_leaf.dita" expression="${main_build_recurse_ant.dita_with_id}"/>
|
|
|
<param name="basedir" expression="${basedir}"/>
|
|
|
+ <param name="recurse_ant_basedir" expression="${default_db:recurse_ant_basedir}"/>
|
|
|
+ <param name="recurse_ant_basedir.temp" expression="${default_db:recurse_ant_basedir.temp}"/>
|
|
|
+ <param name="recurse_ant" expression="${default_db:recurse_ant}"/>
|
|
|
<param name="build_recurse_ant.xsl" expression="${build_recurse_ant.xsl}"/>
|
|
|
<param name="temp" expression="${temp}"/>
|
|
|
<param name="builds_to_ant.xsl" expression="${builds_to_ant.xsl}"/>
|
|
|
@@ -511,7 +520,8 @@
|
|
|
<param name="xpath_query" expression="${xpath_query}"/>
|
|
|
<param name="xpath_query.xsl" expression="${xpath_query.xsl}"/>
|
|
|
<param name="empty.xml" expression="${empty.xml}"/>
|
|
|
-
|
|
|
+ <param name="simpleSchema_dir" expression="${simpleSchema_dir}"/>
|
|
|
+ <param name="default_db_xml_cache.public" expression="${default_db_xml_cache.public}"/>
|
|
|
</xslt>
|
|
|
<!--<import file="${build_recurse_ant.xml}"/>-->
|
|
|
<record action="stop" name="ant.log"/>
|
|
|
@@ -521,7 +531,7 @@
|
|
|
</target>
|
|
|
|
|
|
<target name="build_recurse_ant_merge_dita_from_temp.xsl" depends="build_recurse_ant.xml" description="z plikow temp/$uuid.* buduje $out_task.dita.final ">
|
|
|
- <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}" destdir="./" out="${out_task.dita.final}" >
|
|
|
+ <xslt basedir="${default_db:recurse_ant_basedir}" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}" destdir="./" out="${out_task.dita.final}" >
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
</factory>
|
|
|
@@ -538,7 +548,7 @@
|
|
|
|
|
|
|
|
|
<target name="build_recurse_ant_merge_dita_from_temp.xsl_tr_map" depends="build_recurse_ant.xml" description="z plikow temp/$uuid.* buduje $out_task.dita.final ">
|
|
|
- <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}" destdir="./" out="${out_task.dita.final}" >
|
|
|
+ <xslt basedir="${default_db:recurse_ant_basedir}" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}" destdir="./" out="${out_task.dita.final}" >
|
|
|
<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="RelatedFeatureRoot"/>
|
|
|
@@ -549,7 +559,7 @@
|
|
|
<param name="uuid" expression="${uuid_tested}"/>
|
|
|
<!--<param name="basedir" expression="${basedir}"/>-->
|
|
|
<param name="temp" expression="${temp}"/>
|
|
|
- <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>
|
|
|
</target>
|
|
|
@@ -565,7 +575,7 @@
|
|
|
<RelatedFeatureRoot>${out_task.dita.final_no_RelatedFeatureRoot}</RelatedFeatureRoot>
|
|
|
</echoxml>-->
|
|
|
|
|
|
- <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}" destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}.xml" >
|
|
|
+ <xslt basedir="${default_db:recurse_ant_basedir}" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}" destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}.xml" >
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
</factory>
|
|
|
@@ -579,7 +589,7 @@
|
|
|
<param name="simpleSchema_dir" expression="${simpleSchema_dir}"/>
|
|
|
</xslt>
|
|
|
|
|
|
- <xslt basedir="./" style="${recurse_ant_to_html.xsl}" in="${out_task.dita.final_with_RelatedFeatureLoop}.xml" destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}.html" >
|
|
|
+ <xslt basedir="${default_db:recurse_ant_basedir}" style="${recurse_ant_to_html.xsl}" in="${out_task.dita.final_with_RelatedFeatureLoop}.xml" destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}.html" >
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
</factory>
|
|
|
@@ -630,7 +640,7 @@
|
|
|
<arg value="-f" />
|
|
|
<arg value="pdf"/>
|
|
|
<arg value="-o"/>
|
|
|
- <arg value="out"/>
|
|
|
+ <arg value="${out}"/>
|
|
|
</exec>
|
|
|
<exec executable="bash" dir="." outputproperty="out_task_file">
|
|
|
<arg value="-c"/>
|
|
|
@@ -671,13 +681,14 @@
|
|
|
<arg value="-f" />
|
|
|
<arg value="html5"/>
|
|
|
<arg value="-o"/>
|
|
|
- <arg value="out"/>
|
|
|
+ <arg value="${out}"/>
|
|
|
</exec>
|
|
|
|
|
|
<!--<exec executable="bash" dir="." outputproperty="out_task_file">
|
|
|
<arg value="-c"/>
|
|
|
<arg value="echo ${out_task.dita.final.html} |sed 's/^.*\///'"/>
|
|
|
- </exec>--> <echo message="OUTPUT__START"/>
|
|
|
+ </exec>-->
|
|
|
+ <echo message="OUTPUT__START"/>
|
|
|
<!--<echo> url = ${url}
|
|
|
</echo>-->
|
|
|
<!--<echo> passwordBase64Basic = ${passwordBase64Basic_tested}
|
|
|
@@ -688,10 +699,10 @@
|
|
|
</echo>-->
|
|
|
<!--<loadfile property="out_task_file.loadfile" srcfile="out/${out_task_file}"></loadfile>-->
|
|
|
<echo>
|
|
|
- <br>Wygenerowano druk html - sciagnij go <a href="${webRootUrl}/out/${out_task_file}.html" target="_blank"> "${webRootUrl}/out/${out_task_file}.html</a></br>
|
|
|
- <
|
|
|
->
|
|
|
-<br>Dodaj do korespondencji (W przygotowaniu) </br>
|
|
|
+ <br>Wygenerowano druk html - sciagnij go <a href="${webRootUrl}/${out}/${out_task.dita.final.html}" target="_blank"> "${webRootUrl}/${out}/${out_task.dita.final.html}</a></br>
|
|
|
+ <br> $webRootUrl to ${webRootUrl}
|
|
|
+ <br> $out_task.dita.final to ${out_task.dita.final}
|
|
|
+ <br> $out_task_file to ${out_task_file}
|
|
|
</echo>
|
|
|
<!-- <echo>
|
|
|
<br>Dodaj do korespondencji (W przygotowaniu)</br>
|
|
|
@@ -715,7 +726,7 @@
|
|
|
<arg value="-f" />
|
|
|
<arg value="tocjs"/>
|
|
|
<arg value="-o"/>
|
|
|
- <arg value="out"/>
|
|
|
+ <arg value="${out}"/>
|
|
|
</exec>
|
|
|
<!--<exec executable="bash" dir="." outputproperty="out_task_file">
|
|
|
<arg value="-c"/>
|