Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Stephane Crozat
hdoc
Commits
b9cc3bae
Commit
b9cc3bae
authored
Dec 14, 2015
by
Jean Vintache
Browse files
fix ant : namespace in container.xml
parent
e656b4d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
etherpad_to_hdoc/antce/myantce.ant
View file @
b9cc3bae
<?xml version="1.0" encoding="UTF-8"?
>
<project
basedir=
"."
name=
"myantce"
default=
"main"
>
<property
file=
"build.properties"
/
>
<
?xml version="1.0" encoding="UTF-8"?
$gt;
<project
basedir=
"."
name=
"myantce"
default=
"main"
$gt;
<property
file=
"build.properties"
/
$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=
"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=
"clean-tmp"
>
<delete
dir=
"${tmp}"
failonerror=
"false"
/
>
<mkdir
dir=
"${tmp}"
/
>
</target
>
<target
name=
"clean-tmp"
$gt;
<delete
dir=
"${tmp}"
failonerror=
"false"
/
$gt;
<mkdir
dir=
"${tmp}"
/
$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
>
<!--
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;
<!-- Builds Hdoc structure --
>
<target
name=
"construct_hdoc"
>
<mkdir
dir=
"${tmp}/tozip/"
/
>
<mkdir
dir=
"${tmp}/tozip/META-INF"
/
>
<!--
Builds
Hdoc
structure
--
$gt;
<target
name=
"construct_hdoc"
$gt;
<mkdir
dir=
"${tmp}/tozip/"
/
$gt;
<mkdir
dir=
"${tmp}/tozip/META-INF"
/
$gt;
<!-- container --
>
<touch
file=
"${tmp}/tozip/META-INF/container.xml"
/
>
<echo
xml
file=
"${tmp}/tozip/META-INF/container.xml"
>
<
container
version=
"1.0"
>
<
rootfiles
>
<
rootfile
full-path=
"${rootfilename}"
media-type=
"text/xml"
/
>
<
/rootfiles
>
<
/container
>
</echoxml
>
<!--
container
--
$gt;
<touch
file=
"${tmp}/tozip/META-INF/container.xml"
/
$gt;
<echo
file=
"${tmp}/tozip/META-INF/container.xml"
$gt;
$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;
<!-- mimetype --
>
<touch
file=
"${tmp}/mimetype"
/
>
<echo
message=
"application/x-hdoc+zip"
file=
"${tmp}/tozip/mimetype"
/
>
</target
>
<!--
mimetype
--
$gt;
<touch
file=
"${tmp}/mimetype"
/
$gt;
<echo
message=
"application/x-hdoc+zip"
file=
"${tmp}/tozip/mimetype"
/
$gt;
</target
$gt;
<target
name=
"jing-hdoc"
>
<taskdef
name=
"jing"
classname=
"com.thaiopensource.relaxng.util.JingTask"
>
<classpath
>
<pathelement
location=
"lib/jing.jar"
/
>
</classpath
>
</taskdef
>
<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;
<jing
file=
"${tmp}/tozip/content.xml"
rngfile=
"schema/xhtml/hdoc1-xhtml.rng"
>
</jing
>
<echo
>
content.xml respecte le schema hdoc1-xhtml.rng
</echo
>
<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;
</target
>
</target
$gt;
<!-- Zip Hdoc container --
>
<target
name=
"zip"
>
<zip
basedir=
"${tmp}/tozip/"
destfile=
"${out}/output.hdoc"
/
>
</target
>
<!--
Zip
Hdoc
container
--
$gt;
<target
name=
"zip"
$gt;
<zip
basedir=
"${tmp}/tozip/"
destfile=
"${out}/output.hdoc"
/
$gt;
</target
$gt;
<target
name=
"main"
depends=
"start,apply-xslt,construct_hdoc,jing-hdoc,zip"
>
<target
name=
"main"
depends=
"start,apply-xslt,construct_hdoc,jing-hdoc,zip"
$gt;
</target
>
</target
$gt;
</project>
\ No newline at end of file
</project$gt;
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment