Commit fde5e4b0 authored by Baptiste PERRAUD's avatar Baptiste PERRAUD

Merge branch 'master' of https://gitlab.utc.fr/crozatst/hdoc

parents 96ade6c2 f1d8bf05
# Convertisseur Canoprof vers HDOC
## User story
-L'utilisateur ouvre Canoprof
-Il crée son contenu
-Il fait un clic droit sur l'élement principal (la racine du contenu) et clique sur exporter l'archive
-Il ne touche pas aux options
-Il sauvegarde le .SCAR dans le dossier input du convertisseur
-Il lance le fichier run.bat (run.sh sous linux)
-Il récupère le hdoc créé dans le dossier output
@echo off
set lib=lib
set ant=canoprof_to_hdoc.ant
set antparam=-Dprogram.param=%1
set scJarList=%lib%\*
java.exe -classpath "%scJarList%" -Xmx150m org.apache.tools.ant.Main -buildfile %ant% %antparam%
pause
REM start /MIN java.exe -classpath "%scJarList%" -Xmx150m org.apache.tools.ant.Main -buildfile %ant% %antparam%
#!/bin/sh
lib="lib"
ant="canoprof_to_hdoc.ant"
antparam="-Dprogram.param=$1"
#Recherche de java et controle que se soit une version SUN
vJavaCmd="java"
xCheckJava () {
vInputVarName=\$"$1"
vInputVarVal=`eval "expr \"$vInputVarName\" "`
if [ -z "$vInputVarVal" ];then
eval "$1=false"
return
fi
vSunJavaFound=`$vInputVarVal -version 2>&1 | grep -Eo -m 1 "(HotSpot)|(OpenJDK)"`
if [ "$vSunJavaFound" != "HotSpot" ] && [ "$vSunJavaFound" != "OpenJDK" ] ; then
eval "$1=false"
return
fi
}
xCheckJava vJavaCmd
if [ "$vJavaCmd" = "false" ]; then
vJavaCmd="$JAVA_HOME/bin/java"
xCheckJava vJavaCmd
if [ "$vJavaCmd" = "false" ]; then
echo "ERREUR: JRE de SUN introuvable. Veuillez dclarer la variable d'environnement JAVA_HOME."
exit 1
fi
fi
#Lancer la commande
scJarList="$lib/*"
$vJavaCmd -classpath "$scJarList:" -Xmx150m org.apache.tools.ant.Main -buildfile $ant $antparam
# Hdoc to Mongo (`hdoc_to_mongo`)
## License
License GPL3.0
http://www.gnu.org/licenses/gpl-3.0.txt
## Credits
Alexandre Thouvenin
Kapilraj Thangeswaran
## Presentation
This module is able to extract data from a file in Hdoc format and insert them into MongoDB.
## Dependencies
No dependance needed.
\ No newline at end of file
# Opale to Mongo (`opale_to_mongo`)
## License
License GPL3.0
http://www.gnu.org/licenses/gpl-3.0.txt
## Credits
Alexandre Thouvenin
Kapilraj Thangeswaran
## Presentation
This module is able to extract data from a file in Opale format and insert them into MongoDB.
## Dependencies
In order to work properly this module needs
1. [`opale_to_hdoc`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/opale_to_hdoc) (Opale to Hdoc conversion)
2. [`hdoc_to_mongo`](https://gitlab.utc.fr/crozatst/hdoc/tree/master/hdoc_to_mongo) (Hdoc to Mongo conversion)
\ 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