Commit 06443101 authored by Jean Vintache's avatar Jean Vintache

fix ant : namespace in container.xml

parent b9cc3bae
<?xml version="1.0" encoding="UTF-8"?$gt;
<project basedir="." name="myantce" default="main"$gt;
<property file="build.properties"/$gt;
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="myantce" default="main">
<property file="build.properties"/>
<target name="start"$gt;
<delete dir="${tmp}" failonerror="false"/$gt;
<mkdir dir="${tmp}"/$gt;
<delete dir="${out}" failonerror="false"/$gt;
<mkdir dir="${out}"/$gt;
<delete dir="${log}" failonerror="false"/$gt;
<mkdir dir="${log}"/$gt;
</target$gt;
<target name="start">
<delete dir="${tmp}" failonerror="false"/>
<mkdir dir="${tmp}"/>
<delete dir="${out}" failonerror="false"/>
<mkdir dir="${out}"/>
<delete dir="${log}" failonerror="false"/>
<mkdir dir="${log}"/>
</target>
<target name="clean-tmp"$gt;
<delete dir="${tmp}" failonerror="false"/$gt;
<mkdir dir="${tmp}"/$gt;
</target$gt;
<target name="clean-tmp">
<delete dir="${tmp}" failonerror="false"/>
<mkdir dir="${tmp}"/>
</target>
<!-- Apply Xslt --$gt;
<target name="apply-xslt"$gt;
<xslt classpath="lib\saxon9he.jar" in="${xsl}/html2xhtml.xsl" out="${tmp}/tmpPad.xhtml" style="${xsl}/html2xhtml.xsl" /$gt;
<xslt in="${tmp}/tmpPad.xhtml" out="${tmp}/tozip/content.xml" style="${xsl}/xhtml2hdoc.xsl" /$gt;
</target$gt;
<!-- Apply Xslt -->
<target name="apply-xslt">
<xslt classpath="lib\saxon9he.jar" in="${xsl}/html2xhtml.xsl" out="${tmp}/tmpPad.xhtml" style="${xsl}/html2xhtml.xsl" />
<xslt in="${tmp}/tmpPad.xhtml" out="${tmp}/tozip/content.xml" style="${xsl}/xhtml2hdoc.xsl" />
</target>
<!-- Builds Hdoc structure --$gt;
<target name="construct_hdoc"$gt;
<mkdir dir="${tmp}/tozip/" /$gt;
<mkdir dir="${tmp}/tozip/META-INF" /$gt;
<!-- Builds Hdoc structure -->
<target name="construct_hdoc">
<mkdir dir="${tmp}/tozip/" />
<mkdir dir="${tmp}/tozip/META-INF" />
<!-- container --$gt;
<touch file="${tmp}/tozip/META-INF/container.xml" /$gt;
<echo file="${tmp}/tozip/META-INF/container.xml"$gt;
<!-- container -->
<touch file="${tmp}/tozip/META-INF/container.xml" />
<echo file="${tmp}/tozip/META-INF/container.xml">
$lt;container version="1.0"$gt;
$lt;rootfiles$gt;
$lt;rootfile full-path="${rootfilename}" media-type="text/xml" /$gt;
$lt;/rootfiles$gt;
$lt;/container$gt;
</echoxml$gt;
</echo>
<!-- mimetype --$gt;
<touch file="${tmp}/mimetype" /$gt;
<echo message="application/x-hdoc+zip" file="${tmp}/tozip/mimetype" /$gt;
</target$gt;
<!-- mimetype -->
<touch file="${tmp}/mimetype" />
<echo message="application/x-hdoc+zip" file="${tmp}/tozip/mimetype" />
</target>
<target name="jing-hdoc"$gt;
<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask"$gt;
<classpath$gt;
<pathelement location="lib/jing.jar"/$gt;
</classpath$gt;
</taskdef$gt;
<target name="jing-hdoc">
<taskdef name="jing" classname="com.thaiopensource.relaxng.util.JingTask">
<classpath>
<pathelement location="lib/jing.jar"/>
</classpath>
</taskdef>
<jing file="${tmp}/tozip/content.xml" rngfile="schema/xhtml/hdoc1-xhtml.rng"$gt;</jing$gt;
<echo$gt;content.xml respecte le schema hdoc1-xhtml.rng</echo$gt;
<jing file="${tmp}/tozip/content.xml" rngfile="schema/xhtml/hdoc1-xhtml.rng"></jing>
<echo>content.xml respecte le schema hdoc1-xhtml.rng</echo>
</target$gt;
</target>
<!-- Zip Hdoc container --$gt;
<target name="zip"$gt;
<zip basedir="${tmp}/tozip/" destfile="${out}/output.hdoc" /$gt;
</target$gt;
<!-- Zip Hdoc container -->
<target name="zip">
<zip basedir="${tmp}/tozip/" destfile="${out}/output.hdoc" />
</target>
<target name="main" depends="start,apply-xslt,construct_hdoc,jing-hdoc,zip"$gt;
<target name="main" depends="start,apply-xslt,construct_hdoc,jing-hdoc,zip">
</target$gt;
</target>
</project$gt;
\ No newline at end of file
</project>
\ No newline at end of file
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