Commit a2096b57 authored by Tyrannas's avatar Tyrannas

fix conversion opale_to_neo4j + installation modules

parent 6bc78266
......@@ -2,8 +2,8 @@
set ant=hdoc_to_neo4j.ant
set antparam=-DNode true;
IF NOT EXIST ./node_modules call npm install
ant -buildfile %ant% %antparam%
pause
IF NOT EXIST ./node_modules npm install & ant -buildfile %ant% %antparam% & pause
ant -buildfile %ant% %antparam% & pause
REM start /MIN java.exe -classpath "%scJarList%" -Xmx150m org.apache.tools.ant.Main -buildfile %ant% %antparam%
......@@ -33,7 +33,9 @@ scJarList="$lib/*"
#test si les packages ont été installés
if [ ! -d "$node_modules" ]; then
cd ../hdoc_to_neo4j/
npm install
cd ../opale_to_neo4j
fi
$vJavaCmd -classpath "$scJarList:" -Xmx150m org.apache.tools.ant.Main -buildfile $ant $antparam
......@@ -22,6 +22,8 @@
<!-- Beginning -->
<target name="convert">
<delete dir="${OutputPath}"/>
<mkdir dir="${OutputPath}"/>
<for param="filename">
<path>
<fileset dir="./input" includes="*.scar"/>
......
......@@ -21,7 +21,7 @@
<target name="clean_everything">
<delete dir="../opale_to_hdoc/input"/>
<delete dir="../opale_to_hdoc/output/result.hdoc"/>
<delete dir="../opale_to_hdoc/output/"/>
<delete dir="../hdoc_to_neo4j/input"/>
<delete dir="../hdoc_to_neo4j/output/"/>
</target>
......@@ -38,7 +38,7 @@
<echo message="The value of property DocType is ${DocType}" />
<!-- get input hdoc file path -->
<copy todir="../opale_to_hdoc/input/sample.scar">
<copy todir="../opale_to_hdoc/input/">
<fileset dir="${InputPath}"/>
</copy>
<ant antfile="../opale_to_hdoc/opale_to_hdoc.ant" inheritAll="false"/>
......
......@@ -2,8 +2,8 @@
set ant=opale_to_neo4j.ant
set antparam=-DNode true;
IF NOT EXIST ./node_modules call npm install
ant -buildfile %ant% %antparam%
IF NOT EXIST ../hdoc_to_neo4j/node_modules cd ../hdoc_to_neo4j/ & npm install & cd ../opale_to_neo4j & ant -buildfile %ant% %antparam% & pause
ant -buildfile %ant% %antparam% & pause
pause
REM start /MIN java.exe -classpath "%scJarList%" -Xmx150m org.apache.tools.ant.Main -buildfile %ant% %antparam%
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