Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Rename CPACK to Cmake.
[simgrid.git] / buildtools / Cmake / test_java.sh
index f126228..08da59d 100755 (executable)
@@ -1,11 +1,16 @@
 #! /bin/sh
-export LD_LIBRARY_PATH="../src/.libs:$LD_LIBRARY_PATH"
-export CLASSPATH=".:../src/simgrid.jar:$CLASSPATH"
+echo "\n\n"
+pwd
+export LD_LIBRARY_PATH="`pwd`/src/.libs:$LD_LIBRARY_PATH"
+export CLASSPATH="`pwd`/src/simgrid.jar:$CLASSPATH"
 cd $1
-if [ ! -e $2.class ] ; then
-  rm classnoinst.stamp
-  make classnoinst.stamp
-fi
+export CLASSPATH="$CLASSPATH:`pwd`"
 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 "LD_LIBRARY_PATH = $LD_LIBRARY_PATH"
+echo "CLASSPATH = $CLASSPATH"
+
+echo "\n\n"
+echo "java $2 *platform.xml *deployment.xml"
+echo "\n\n"
+java $2 *platform.xml *deployment.xml