Commit 1138f0cb authored by Hachem Rihab's avatar Hachem Rihab
Browse files

[hdoc_to_optim] fix saxon import and changed to if/else

parent af78d304
<project name="hdoc_to_optim" default="convert">
<taskdef resource="net/sf/antcontrib/">
<pathelement location="lib/ant-contrib.jar" />
<!-- Arguments properties -->
<property name="DocType" value="none" />
<property name="InputFile" value="none" />
<property name="InputPath" value="input" />
<property name="OutputPath" value="output" />
<property name="OutputScarPath" value="${OutputPath}/result.scar" />
<target name="convert" depends="-condition, -noinput, -input"></target>
<target name="convert">
<!--Check wether there is an input using command line or not-->
<target name="-condition">
<condition property="do.noinput">
<equals arg1="${InputFile}" arg2="none" />
<condition property="do.input">
<equals arg1="${InputFile}" arg2="none" />
<!--There is no input, check the input folder-->
<target name="-noinput" if="do.noinput">
<echo message="The value of property InputFile is none... Checking the input folder" />
<echo message="The value of property InputFile is ${InputFile} ... Checking the input folder" />
<!-- get input hdoc file path -->
<fileset id="fileset_hdoc" dir="${InputPath}" casesensitive="yes">
<include name="*.hdoc"/>
......@@ -51,12 +49,12 @@
<delete dir="result"/>-->
<delete file="get_content.ant"/>
<delete file="get_ressources.ant"/>
<!--There is an input-->
<target name="-input" if="do.input">
<echo message="The value of property InputFile is ${InputFile}" />
<echo message="The value of property InputFile is ${InputFile}" />
<echo message="Executing conversion..." />
<!--unzips the hdoc to be converted-->
......@@ -79,6 +77,9 @@
<delete dir="result"/>-->
<delete file="get_content.ant"/>
<delete file="get_ressources.ant"/>
\ No newline at end of file
......@@ -28,6 +28,8 @@
<chmod file="get_ressources.ant" perm="777"/>
<ant antfile="get_ressources.ant"/>
<!--the ANT runs the main XSLT transfo-->
<xslt in="hdoc/{$path}" out="result/content.paper" style="xsl/transfo.xsl"/>
<xslt in="hdoc/{$path}" out="result/content.paper" style="xsl/transfo.xsl" classpath="lib/saxon9he.jar">
<factory name="net.sf.saxon.TransformerFactoryImpl"/>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment