Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Starting simix mecanism for io.
[simgrid.git] / buildtools / Cmake / test_java.sh
index f126228..47002ad 100755 (executable)
@@ -1,11 +1,9 @@
 #! /bin/sh
-export LD_LIBRARY_PATH="../src/.libs:$LD_LIBRARY_PATH"
-export CLASSPATH=".:../src/simgrid.jar:$CLASSPATH"
+export LD_LIBRARY_PATH=$3/lib:$LD_LIBRARY_PATH
+export JAVA_LIBRARY_PATH=:$3/lib:$JAVA_LIBRARY_PATH
 cd $1
-if [ ! -e $2.class ] ; then
-  rm classnoinst.stamp
-  make classnoinst.stamp
-fi
+echo "LD_LIBRARY_PATH   = $LD_LIBRARY_PATH"
+echo "JAVA_LIBRARY_PATH = $JAVA_LIBRARY_PATH"
 pwd
-echo LD_LIBRARY_PATH="../../../src/.libs:$LD_LIBRARY_PATH" java -cp ".:../../../src/simgrid.jar:$CLASSPATH" $options $2 *platform.xml *deployment.xml
-LD_LIBRARY_PATH="../../../src/.libs:$LD_LIBRARY_PATH" java -cp ".:../../../src/simgrid.jar:$CLASSPATH"  $options $2 *platform.xml *deployment.xml
\ No newline at end of file
+echo "java -cp .:$3/simgrid.jar $2 *platform.xml *deployment.xml"
+java -cp .:$3/simgrid.jar $2 *platform.xml *deployment.xml