|
|
@@ -40,6 +40,7 @@
|
|
|
<property name="default_db:recurse_ant" value="${default_db:recurse_ant_basedir}/build_recurse_ant.xml"/>
|
|
|
<property name="default_db:recurse_ant_basedir.recurse_cache" location="${default_db:recurse_ant_basedir}/recurse_cache"/>
|
|
|
|
|
|
+ <!--<property name="build_recurse_ant.childproperties" location="${WPS_Functions.childproperties}/build_recurse_ant.properties"/>--><!-- TODO UNKNOWN -->
|
|
|
|
|
|
<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" />
|
|
|
@@ -113,6 +114,13 @@
|
|
|
|
|
|
<property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>
|
|
|
|
|
|
+
|
|
|
+ <target name="write_child_props_to_config_dir" depends="install_folders">
|
|
|
+ <!--<echoproperties destfile="${build_recurse_ant.childproperties}"/>-->
|
|
|
+ <echo> TODO #120 - module is to be updated to provide properties - he dont know where is WPS_Functions - to fix. Bypassed properties</echo>
|
|
|
+ </target>
|
|
|
+
|
|
|
+
|
|
|
<target name="uuid_cond">
|
|
|
<condition property="uuid_set" taskname="uuid_check">
|
|
|
<or>
|
|
|
@@ -403,7 +411,7 @@
|
|
|
<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>
|
|
|
- <br># Wygenerowano wyjsciowy plik XML - sciagnij go <a href="${webRootUrl}/${out}/${uuid}.pdf" target="_blank"> "${webRootUrl}/${out}/${uuid}.pdf</a></br>
|
|
|
+ <br># Wygenerowano wyjsciowy plik PDF - sciagnij go <a href="${webRootUrl}/${out}/${uuid}.pdf" target="_blank"> "${webRootUrl}/${out}/${uuid}.pdf</a></br>
|
|
|
</echo>
|
|
|
<echo message="OUTPUT__END"/>
|
|
|
</target>
|
|
|
@@ -459,6 +467,7 @@
|
|
|
<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_cache_control.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_cache_control.xsl"/>
|
|
|
+ <property name="get_wfs_recurse_xsl.xsl" value="${default_db_xml_cache.public}/get_wfs_recurse_xsl.xsl"/>
|
|
|
|
|
|
</target>
|
|
|
|
|
|
@@ -472,6 +481,7 @@
|
|
|
<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_cache_control.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_cache_control.xsl"/>
|
|
|
+ <property name="get_wfs_recurse_xsl.xsl" value="${default_db_xml_cache.public}/get_wfs_recurse_xsl.xsl"/>
|
|
|
</target>
|
|
|
|
|
|
|
|
|
@@ -503,6 +513,10 @@
|
|
|
</xslt>-->
|
|
|
</target>
|
|
|
|
|
|
+ <target name="clean" description="Clean all output and temp files">
|
|
|
+ <antcall target="clean_temp_dir"/>
|
|
|
+ <delete dir="${out}" failonerror="false"/>
|
|
|
+ </target>
|
|
|
|
|
|
<target name="clean_temp_dir" description="URL_TASK Wyczyść cache modułu ">
|
|
|
<!--<delete includeemptydirs="yes" failonerror="false">
|
|
|
@@ -817,7 +831,54 @@
|
|
|
</echo>
|
|
|
<echo message="OUTPUT__END"/>
|
|
|
</target>
|
|
|
-
|
|
|
+
|
|
|
+ <target name="buildpdf_recursed_xsl" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,set_dita" description="retrieve and build object from api using just XSL calls - needed username and password">
|
|
|
+
|
|
|
+
|
|
|
+ <echo>#836 will try to in $main_build_recurse_ant.dita_with_id ${main_build_recurse_ant.dita_with_id}</echo>
|
|
|
+ <xslt basedir="${default_db:recurse_ant_basedir}" style="${get_wfs_recurse_xsl.xsl}" in="${empty.xml}" destdir="./" out="${main_build_recurse_ant.dita_with_id}" > <!-- 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/initialTemplate" value="main"/>
|
|
|
+ </factory>
|
|
|
+
|
|
|
+ <classpath location="/opt/local/share/java/saxon.jar"/>
|
|
|
+ <!--<classpath location="/opt/local/share/java/saxon9he.jar"/>-->
|
|
|
+ <!--<param name="webRootUrl" expression="${webRootUrl}" />-->
|
|
|
+ <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
|
|
|
+ <param name="uuid" expression="${uuid_tested}"/>
|
|
|
+ <param name="username.pass" expression="${Password}"/>
|
|
|
+ <!--<param name="basedir" expression="${basedir}"/>-->
|
|
|
+ <param name="temp" expression="${temp}"/>
|
|
|
+ <param name="simpleSchema_dir" expression="${simpleSchema_dir}"/>
|
|
|
+ </xslt>
|
|
|
+
|
|
|
+
|
|
|
+ <!--<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>
|
|
|
+ <br># Wygenerowano wyjsciowy plik PDF - sciagnij go <a href="${webRootUrl}/${out}/${uuid}.pdf" target="_blank"> "${webRootUrl}/${out}/${uuid}.pdf</a></br>
|
|
|
+ </echo>
|
|
|
+ <echo message="OUTPUT__END"/>
|
|
|
+ </target>
|
|
|
|
|
|
<target name="buildpdf_recursed_html5" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,php_session_id_check,check_dita" if="${test_if_dita}" description="URL_TASK Pobierz Wersję HTML">
|
|
|
<property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>
|