Commit 3622cbd8 authored by Jean Vintache's avatar Jean Vintache
Browse files

fix myantce.ant

parent 23c394fa
...@@ -19,16 +19,17 @@ ...@@ -19,16 +19,17 @@
<!-- Apply Xslt --> <!-- Apply Xslt -->
<target name="apply-xslt"> <target name="apply-xslt">
<xslt in="${xsl}/html2xhtml.xsl" out="${tmp}/tmpPad.xhtml" style="${xsl}/html2xhtml.xsl" /> <xslt in="${xsl}/html2xhtml.xsl" out="${tmp}/tmpPad.xhtml" style="${xsl}/html2xhtml.xsl" />
<xslt in="${tmp}/tmpPad.html" out="${tmp}/content.xml" style="${xsl}/xhtml2hdoc.xsl" /> <xslt in="${tmp}/tmpPad.xhtml" out="${tmp}/tozip/content.xml" style="${xsl}/xhtml2hdoc.xsl" />
</target> </target>
<!-- Builds Hdoc structure --> <!-- Builds Hdoc structure -->
<target name="construct_hdoc"> <target name="construct_hdoc">
<mkdir dir="${tmp}/META-INF" /> <mkdir dir="${tmp}/tozip/" />
<mkdir dir="${tmp}/tozip/META-INF" />
<!-- container --> <!-- container -->
<touch file="${tmp}/META-INF/container.xml" /> <touch file="${tmp}/tozip/META-INF/container.xml" />
<echoxml file="${tmp}/META-INF/container.xml"> <echoxml file="${tmp}/tozip/META-INF/container.xml">
<container version="1.0"> <container version="1.0">
<rootfiles> <rootfiles>
<rootfile full-path="${rootfilename}" media-type="text/xml" /> <rootfile full-path="${rootfilename}" media-type="text/xml" />
...@@ -38,12 +39,12 @@ ...@@ -38,12 +39,12 @@
<!-- mimetype --> <!-- mimetype -->
<touch file="${tmp}/mimetype" /> <touch file="${tmp}/mimetype" />
<echo message="application/x-hdoc+zip" file="${tmp}/mimetype" /> <echo message="application/x-hdoc+zip" file="${tmp}/tozip/mimetype" />
</target> </target>
<!-- Zip Hdoc container --> <!-- Zip Hdoc container -->
<target name="zip"> <target name="zip">
<zip basedir="${tmp}" destfile="${out}/output.hdoc" /> <zip basedir="${tmp}tozip/" destfile="${out}/output.hdoc" />
</target> </target>
<target name="main" depends="start,apply-xslt,construct_hdoc,zip" /> <target name="main" depends="start,apply-xslt,construct_hdoc,zip" />
......
Supports Markdown
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