|
|
@@ -33,6 +33,7 @@
|
|
|
-Duuid=1 -DwebRootUrl=somePathDir-->
|
|
|
<property name="temp" value="temp"/> <!-- temp files-->
|
|
|
<property name="out" value="out"/> <!-- output ready files like pdf -->
|
|
|
+ <property name="p5_tr_map_dir" location="../../../default_db.instance.xml/p5_tr_map" />
|
|
|
|
|
|
<property name="uuid" value="${uuid}"/> <!--TODO-->
|
|
|
<property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
|
|
|
@@ -41,6 +42,7 @@
|
|
|
|
|
|
<property name="api_url" value="https://biuro.biall-net.pl/SE/version-git/wfs-data.php"/>
|
|
|
<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 -->
|
|
|
<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="xpath" value="${xpath}"/> <!-- to be set initially like as key to search ID -->
|
|
|
<property name="xpath_value" value="${xpath_value}"/> <!-- to be set initially like 1000 (to search ID=1000, if ID we get by featureID -->
|
|
|
@@ -207,10 +209,65 @@
|
|
|
<echo><br>Brakuje druku dla powiązanego obiektu ${main_build_recurse_ant.dita} </br></echo>
|
|
|
<echo message="OUTPUT__END"/>
|
|
|
</target>
|
|
|
+
|
|
|
+
|
|
|
<target name="dita_ok" if="${test_if_dita}">
|
|
|
+ <!-- polaczenie pdfa -->
|
|
|
<antcall target="build_recurse_ant_merge_dita_from_temp.xsl"/>
|
|
|
</target>
|
|
|
|
|
|
+
|
|
|
+ <!-- #### tr_map #### -->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <target name="set_tr_map" depends="check_set_default_db_xml_cache.public_local,check_default_db_xml_cache.public_default" >
|
|
|
+ <!--<property name="main_build_recurse_ant.dita" value="main_build_recurse_ant.dita"/>-->
|
|
|
+ <exec executable="bash" dir="." outputproperty="main_build_recurse_ant.tr_map_sed">
|
|
|
+ <arg value="-c"/>
|
|
|
+ <arg value="echo ${typeName_tested} |sed 's/.*://'"/>
|
|
|
+ </exec>
|
|
|
+ <!-- element-default_db__x3A__CRM_PROCES__x3A__CRM_PROCES -->
|
|
|
+ <property name="main_build_recurse_ant.dita" value="${p5_tr_map_dir}/element-${namespace_prefix_p5_tr_map}__x3A__${main_build_recurse_ant.tr_map_sed}__x3A__${main_build_recurse_ant.tr_map_sed}.xml"/>
|
|
|
+ <echo> Ustawiam $main_build_recurse_ant.dita na ${main_build_recurse_ant.dita} ; </echo>
|
|
|
+
|
|
|
+ <property name="main_build_recurse_ant.dita_with_id" value="${temp}/${main_build_recurse_ant.tr_map_sed}.with_id.xml"/>
|
|
|
+ <property name="main_build_recurse_ant.dita_with_id.xsl" value="${default_db_xml_cache.public}/main_build_recurse_ant.dita_with_id.xsl"/>
|
|
|
+ <condition property="test_if_tr_map" taskname="check_tr_map" >
|
|
|
+ <available file="${main_build_recurse_ant.dita}"/>
|
|
|
+ </condition>
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <target name="check_tr_map" depends="set_tr_map,tr_map_fail,tr_map_ok">
|
|
|
+ <echo> testujemy czy jest tr_map</echo>
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <target name="tr_map_fail" unless="${test_if_tr_map}">
|
|
|
+ <echo message="OUTPUT__START"/>
|
|
|
+ <echo><br>Brakuje druku dla powiązanego obiektu ${main_build_recurse_ant.dita} </br></echo>
|
|
|
+ <echo message="OUTPUT__END"/>
|
|
|
+ </target>
|
|
|
+
|
|
|
+
|
|
|
+ <target name="tr_map_ok" if="${test_if_tr_map}">
|
|
|
+ <!-- polaczenie pdfa -->
|
|
|
+ <echo>#251 wyzwalam build_recurse_ant_merge_dita_from_temp.xsl</echo>
|
|
|
+ <antcall target="build_recurse_ant_merge_dita_from_temp.xsl"/>
|
|
|
+ </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">
|
|
|
+ <echo message="OUTPUT__START"/>
|
|
|
+ <echo>
|
|
|
+ <br>Wygenerowano wyjsciowy plik XML - sciagnij go <a href="${webRootUrl}/${out_task.dita.final}" target="_blank"> "${webRootUrl}/${out_task.dita.final}</a></br>
|
|
|
+ </echo>
|
|
|
+ <echo message="OUTPUT__END"/>
|
|
|
+ </target>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <!-- #### eof tr_map #### -->
|
|
|
+
|
|
|
<target name="set_default_db_xml_cache.public_local">
|
|
|
<condition property="set_default_db_xml_cache.public_local">
|
|
|
<available file="default_db_xml_cache.public/build_recurse_ant_merge_dita_from_temp.xsl"/>
|
|
|
@@ -250,6 +307,17 @@
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
</factory>
|
|
|
+ <param name="namespace_prefix" expression="${namespace_prefix}"/>
|
|
|
+ <classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
+ </xslt>
|
|
|
+ </target>
|
|
|
+
|
|
|
+ <target name="main_build_recurse_ant.tr_map_with_id" if="${test_if_tr_map}">
|
|
|
+ <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}" >
|
|
|
+ <factory name="net.sf.saxon.TransformerFactoryImpl">
|
|
|
+ <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
|
|
|
+ </factory>
|
|
|
+ <param name="namespace_prefix" expression="${namespace_prefix}"/>
|
|
|
<classpath location="/opt/local/share/java/saxon9he.jar"/>
|
|
|
</xslt>
|
|
|
</target>
|
|
|
@@ -265,7 +333,7 @@
|
|
|
</target>
|
|
|
|
|
|
<!-- wygenerowanie ant builda do sciagniecia niezbednego elementu na podstawie template main.dita i tam zagniezdzonego RelatedFeature-->
|
|
|
- <target name="build_recurse_ant.xml" depends="main_build_recurse_ant.dita_with_id">
|
|
|
+ <target name="build_recurse_ant.xml" depends="main_build_recurse_ant.dita_with_id,main_build_recurse_ant.tr_map_with_id">
|
|
|
<!-- build do wytworzenia pierwszego przetworzenia zagniezdzen -->
|
|
|
<record name="${temp}/ant.log" loglevel="verbose" append="true"/>
|
|
|
<property name="loop_xpath" value="root"/>
|
|
|
@@ -306,6 +374,9 @@
|
|
|
<!-- pozbierac wszystkie do kupy xmle -->
|
|
|
</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}" >
|
|
|
<factory name="net.sf.saxon.TransformerFactoryImpl">
|