Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
hdoc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Stephane Crozat
hdoc
Commits
e10c46c3
Commit
e10c46c3
authored
Dec 21, 2015
by
Decorde Jeffrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Lib folder fixed
parent
a1e574cf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
21 deletions
+23
-21
hdoc_to_opale/bibtex_to_opale/Ant/bibtex_to_opale.ant
hdoc_to_opale/bibtex_to_opale/Ant/bibtex_to_opale.ant
+19
-18
hdoc_to_opale/hdoc_to_opale.ant
hdoc_to_opale/hdoc_to_opale.ant
+1
-1
hdoc_to_opale/xsl/prepareCourseUcCopies.xsl
hdoc_to_opale/xsl/prepareCourseUcCopies.xsl
+1
-1
hdoc_to_opale/xsl/transformation0.xsl
hdoc_to_opale/xsl/transformation0.xsl
+2
-1
No files found.
hdoc_to_opale/bibtex_to_opale/Ant/bibtex_to_opale.ant
View file @
e10c46c3
...
...
@@ -2,7 +2,8 @@
<project
basedir=
".."
name=
"main"
default=
"convert"
>
<property
name=
"InputPath"
value=
"bib2.bib"
></property>
<property
name=
"OutputPath"
value=
"${basedir}\result\ref.scar"
></property>
<property
name=
"lib"
value=
"${basedir}/lib"
/>
<target
name=
"convert"
>
<antcall
target=
"preparation"
/>
<antcall
target=
"BibtexToBibXml"
/>
...
...
@@ -18,7 +19,7 @@
<antcall
target=
"zip"
/>
<antcall
target=
"CleanDirectory"
/>
</target>
<target
name=
"preparation"
>
<delete
dir=
"${basedir}/result"
></delete>
<mkdir
dir=
"${basedir}/result"
></mkdir>
...
...
@@ -26,52 +27,52 @@
<mkdir
dir=
"${basedir}/decompressedOpale/ref"
></mkdir>
<mkdir
dir=
"${basedir}/tmp"
></mkdir>
</target>
<target
name=
"CleanDirectory"
>
<delete
dir=
"${basedir}/tmp"
></delete>
<delete
dir=
"${basedir}/java"
></delete>
<delete
dir=
"${basedir}/decompressedOpale"
></delete>
</target>
<target
name=
"BibtexToBibXml"
>
<!-- Convert Bibtex into BibtexXml -->
<java
fork=
"true"
failonerror=
"true"
jar=
"
lib
/bibtex.jar"
failonerror=
"true"
jar=
"
${lib}
/bibtex.jar"
>
<arg
value=
"${InputPath}"
/>
<arg
value=
"${basedir}/tmp"
/>
<arg
value=
"/tmpBibXml.xml"
/>
</java>
</target>
<target
name=
"BibXmlToHdocBib"
>
<!-- Convert from BibXlm to HdocBib -->
<xslt
classpath=
"${basedir}/
lib/saxon9he.jar"
in=
"${basedir}\tmp\tmpBibXml.xml"
out=
"${basedir}\tmp\tmpHdocBib.xml"
<xslt
classpath=
"${basedir}/
${lib}/saxon9he.jar"
in=
"${basedir}\tmp\tmpBibXml.xml"
out=
"${basedir}\tmp\tmpHdocBib.xml"
xslresource=
"${basedir}/XSL/BibToHdoc.xsl"
></xslt>
</target>
<target
name=
"HdocToOpale"
>
<!-- Convert from HdocBib to Opale -->
<xslt
in=
"${basedir}\tmp\tmpHdocBib.xml"
out=
"${basedir}/tmp/tempHdoc.xml"
<xslt
in=
"${basedir}\tmp\tmpHdocBib.xml"
out=
"${basedir}/tmp/tempHdoc.xml"
xslresource=
"${basedir}/XSL/SeparateXmlt.xsl"
>
<param
name=
"in"
expression=
"${basedir}\tmp\tmpHdocBib.xml"
></param>
<param
name=
"out"
expression=
"${basedir}\decompressedOpale\ref"
></param>
</xslt>
<ant
antfile=
"${basedir}/tmp/tempHdoc.xml"
/>
</target>
<target
name=
"zip"
>
<chmod
dir=
"${basedir}/decompressedOpale"
perm=
"777"
></chmod>
<copy
file=
".wspmeta"
todir=
"${basedir}/decompressedOpale"
/>
<zip
basedir=
"decompressedOpale"
destfile=
"${OutputPath}"
encoding=
"UTF-8"
/>
<chmod
dir=
"${OutputPath}"
perm=
"777"
/>
</target>
</project>
\ No newline at end of file
</project>
hdoc_to_opale/hdoc_to_opale.ant
View file @
e10c46c3
...
...
@@ -12,7 +12,6 @@
<property
name=
"log"
location=
"${basedir}/log"
/>
<property
name=
"schema"
location=
"${basedir}/schema"
/>
<property
name=
"bibtex"
location=
"${basedir}/bibtex_to_opale"
/>
<property
file=
"global.properties"
/>
<target
name=
"convert"
>
...
...
@@ -91,6 +90,7 @@
</first>
<xslt
in=
"${toString:first}"
out=
"${tmp}/${filename}/generateContentPath.xml"
style=
"${xsl}/transformation0.xsl"
processor=
"org.apache.tools.ant.taskdefs.optional.TraXLiaison"
>
<param
name=
"filename"
expression=
"${filename}"
/>
<param
name=
"lib"
expression=
"${lib}"
/>
</xslt>
<chmod
file=
"${tmp}/${filename}/generateContentPath.xml"
perm=
"777"
/>
</sequential>
...
...
hdoc_to_opale/xsl/prepareCourseUcCopies.xsl
View file @
e10c46c3
...
...
@@ -21,7 +21,7 @@
<property
name=
"filename"
location=
"${{tmp}}/{$filename}"
/>
<taskdef
name=
"jing"
classname=
"com.thaiopensource.relaxng.util.JingTask"
>
<classpath>
<pathelement
location=
"../
lib
/jing.jar"
/>
<pathelement
location=
"../
${lib}
/jing.jar"
/>
</classpath>
</taskdef>
...
...
hdoc_to_opale/xsl/transformation0.xsl
View file @
e10c46c3
...
...
@@ -9,9 +9,10 @@
<project
name=
"getContentFileAndTransformIt"
basedir=
"."
default=
"start"
>
<property
file=
"global.properties"
/>
<property
name=
"filename"
location=
"${filename}"
/>
<property
name=
"lib"
location=
"${lib}"
/>
<taskdef
name=
"jing"
classname=
"com.thaiopensource.relaxng.util.JingTask"
>
<classpath>
<pathelement
location=
"../
lib
/jing.jar"
/>
<pathelement
location=
"../
${lib}
/jing.jar"
/>
</classpath>
</taskdef>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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