Commit a2096b57 authored by Tyrannas's avatar Tyrannas
Browse files

fix conversion opale_to_neo4j + installation modules

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