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
6068181e
Commit
6068181e
authored
Dec 14, 2015
by
aperdria
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Connecting mindmapping_to_opale with hdoc_to_opale
parent
92ab1272
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
91 additions
and
61 deletions
+91
-61
input/sect.hdoc/sect.hdoc
input/sect.hdoc/sect.hdoc
+0
-0
mindmapping_to_hdoc/mindmapping_to_hdoc.ant
mindmapping_to_hdoc/mindmapping_to_hdoc.ant
+52
-52
mindmapping_to_opale/mindmapping_to_opale.ant
mindmapping_to_opale/mindmapping_to_opale.ant
+39
-9
No files found.
input/sect.hdoc/sect.hdoc
0 → 100644
View file @
6068181e
File added
mindmapping_to_hdoc/mindmapping_to_hdoc.ant
View file @
6068181e
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<project
basedir=
"."
default=
"default"
>
<project
basedir=
"."
default=
"default"
>
<property
name=
"module"
value=
"default"
/>
<property
name=
"module"
value=
"default"
/>
<!--
<!--
only for the debug
only for the debug
<property name="inputPath" value="test.mm"></property>
<property name="inputPath" value="test.mm"></property>
<property name="outputPath" value="content.xml"/>
<property name="outputPath" value="content.xml"/>
<property name="converting" value="yes"/>
<property name="converting" value="yes"/>
-->
-->
<property
name=
"resultFile"
value=
"${basedir}/result"
/>
<target
name=
"default"
depends=
"preparation"
>
<echo>
----------------------------Begin of conversion----------------------------------
</echo>
<!-- Sect Schema : only sect element -->
<antcall
target=
"Makehdoc"
>
<param
name=
"myXSLT"
value=
"sect.xsl"
/>
<param
name=
"hdocName"
value=
"sect"
/>
</antcall>
<!-- For debug purposes <delete dir="${basedir}/temp"/> -->
<echo>
----------------------------End of conversion----------------------------------
</echo>
</target>
<target
name=
"preparation"
>
<echo>
Setting up the conversion
</echo>
<delete
dir=
"${basedir}/temp"
></delete>
<mkdir
dir=
"${basedir}/temp"
/>
<delete
dir=
"${resultFile}/hdoc"
></delete>
<mkdir
dir=
"${resultFile}/hdoc"
/>
<!--<condition>
<equals arg1="${foo}" arg2=""/>
</condition> -->
<!-- //delete temp -->
<echo>
--- End ----
</echo>
</target>
<!-- Convert a mindMap file into a hdoc, with a xsl schema specified in the parameter -->
<target
name=
"Makehdoc"
>
<echo>
Begin data conversion
</echo>
<mkdir
dir=
"${basedir}/temp/${hdocName}"
/>
<mkdir
dir=
"${basedir}/temp/${hdocName}/META-INF"
/>
<copy
file=
"${basedir}/mimetype"
tofile=
"${basedir}/temp/${hdocName}/mimetype"
/>
<!-- create the container file with an XSLT transformation -->
<xslt
classpath=
"lib/saxon9he.jar"
in=
"${basedir}/${inputPath}"
out=
"${basedir}/temp/${hdocName}/META-INF/container.xml"
xslresource=
"${basedir}/xslt/makeContainer.xsl"
/>
<!-- create the file which contains the freemind data converted-->
<xslt
classpath=
"lib/saxon9he.jar"
in=
"${basedir}/${inputPath}"
out=
"${basedir}/temp/${hdocName}/content.xml"
xslresource=
"${basedir}/xslt/${myXSLT}"
/>
<!-- zipping files as the hdoc format -->
<zip
destfile=
"${resultFile}/hdoc/${hdocName}.hdoc"
basedir=
"${basedir}/temp/${hdocName}"
/>
<!-- </condition> -->
<echo>
end data conversion
</echo>
</target>
<property
name=
"resultFile"
value=
"${basedir}/result"
/>
<target
name=
"default"
depends=
"preparation"
>
<echo>
----------------------------Begin of conversion----------------------------------
</echo>
<!-- Sect Schema : only sect element -->
<antcall
target=
"Makehdoc"
>
<param
name=
"myXSLT"
value=
"sect.xsl"
/>
<param
name=
"hdocName"
value=
"sect"
/>
</antcall>
<!-- For debug purposes <delete dir="${basedir}/temp"/> -->
<echo>
----------------------------End of conversion----------------------------------
</echo>
</target>
<target
name=
"preparation"
>
<echo>
Setting up the conversion
</echo>
<delete
dir=
"${basedir}/temp"
></delete>
<mkdir
dir=
"${basedir}/temp"
/>
<delete
dir=
"${resultFile}/hdoc"
></delete>
<mkdir
dir=
"${resultFile}/hdoc"
/>
<!--<condition>
<equals arg1="${foo}" arg2=""/>
</condition> -->
<!-- //delete temp -->
<echo>
--- End ----
</echo>
</target>
<!-- Convert a mindMap file into a hdoc, with a xsl schema specified in the parameter -->
<target
name=
"Makehdoc"
>
<echo>
Begin data conversion
</echo>
<mkdir
dir=
"${basedir}/temp/${hdocName}"
/>
<mkdir
dir=
"${basedir}/temp/${hdocName}/META-INF"
/>
<copy
file=
"${basedir}/mimetype"
tofile=
"${basedir}/temp/${hdocName}/mimetype"
/>
<!-- create the container file with an XSLT transformation -->
<xslt
classpath=
"lib/saxon9he.jar"
in=
"${basedir}/${inputPath}"
out=
"${basedir}/temp/${hdocName}/META-INF/container.xml"
xslresource=
"${basedir}/xslt/makeContainer.xsl"
/>
<!-- create the file which contains the freemind data converted-->
<xslt
classpath=
"lib/saxon9he.jar"
in=
"${basedir}/${inputPath}"
out=
"${basedir}/temp/${hdocName}/content.xml"
xslresource=
"${basedir}/xslt/${myXSLT}"
/>
<!-- zipping files as the hdoc format -->
<zip
destfile=
"${resultFile}/hdoc/${hdocName}.hdoc"
basedir=
"${basedir}/temp/${hdocName}"
/>
<!-- </condition> -->
<echo>
end data conversion
</echo>
</target>
</project>
</project>
mindmapping_to_opale/mindmapping_to_opale.ant
View file @
6068181e
...
@@ -57,15 +57,45 @@
...
@@ -57,15 +57,45 @@
</ant>
</ant>
</target>
</target>
<!-- Connect this to the work of the other group about hdoc to opale (configure and call their ant etc.) -->
<target
depends=
"ifOSWindows, ifOSUnix"
name=
"opale_conversion"
/>
<target
name=
"opale_conversion"
>
<!-- <condition property="converting.set" else="false"> -->
<condition
property=
"isOSUnix"
>
<ant
antfile=
"${basedir}/hdoc_to_opale/hdoc_to_opale.ant"
dir=
"${basedir}/hdoc_to_opale"
>
<os
family=
"unix"
/>
<property
name=
"InputPath"
value=
"${resultFile}/hdoc/${hdocName}.hdoc"
/>
</condition>
<property
name=
"OutputPath"
value=
"${resultFile}/scar/${hdocName}.scar"
/>
</ant>
<condition
property=
"isOSWindows"
>
</target>
<os
family=
"windows"
/>
</condition>
<!-- if the OS is windows call the target run.script.windows -->
<target
name=
"ifOSWindows"
if=
"isOSWindows"
>
<echo>
is Windows........
</echo>
<antcall
target=
"opale_conversion.windows"
/>
</target>
<!-- if the OS is not windows call the target run.script.unix-->
<target
name=
"ifOSUnix"
if=
"isOSUnix"
>
<echo>
is Unix........
</echo>
<antcall
target=
"opale_conversion.unix"
/>
</target>
<target
name=
"opale_conversion.windows"
>
<echo>
This is a Windows machine.
</echo>
<copy
file=
"${resultFile}/hdoc/${hdocName}.hdoc"
todir=
"${basedir}/../hdoc_to_opale/input/${hdocName}.hdoc"
/>
<exec
dir=
"."
executable=
"cmd"
>
<arg
value=
"${basedir}/../hdoc_to_opale/run.bat"
/>
</exec>
<!-- <copy file="${basedir}/../hdoc_to_opale/output/output.scar" todir="${resultFile}/scar/${hdocName}.scar"/>-->
</target>
<target
name=
"opale_conversion.unix"
>
<echo>
This is an Unix machine.
</echo>
<copy
file=
"${resultFile}/hdoc/${hdocName}.hdoc"
todir=
"${basedir}/../hdoc_to_opale/input/${hdocName}.hdoc"
/>
<exec
dir=
"."
executable=
"/bin/sh"
>
<arg
value=
"${basedir}/../hdoc_to_opale/run.sh"
/>
</exec>
<!-- <copy file="${basedir}/../hdoc_to_opale/output/output.scar" todir="${resultFile}/scar/${hdocName}.scar"/>-->
</target>
</project>
</project>
...
...
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