X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/581b2e716abc58a1b9b8deb41639d6ff427364be..f1be35ba7d6cb89619fe933cbd5bfdd10c611948:/buildtools/Cmake/test_java.sh diff --git a/buildtools/Cmake/test_java.sh b/buildtools/Cmake/test_java.sh index f126228583..2f4c858216 100755 --- a/buildtools/Cmake/test_java.sh +++ b/buildtools/Cmake/test_java.sh @@ -1,11 +1,10 @@ #! /bin/sh -export LD_LIBRARY_PATH="../src/.libs:$LD_LIBRARY_PATH" -export CLASSPATH=".:../src/simgrid.jar:$CLASSPATH" +echo "\n" +export CLASSPATH=$3:$3/simgrid.jar:$CLASSPATH +export LD_LIBRARY_PATH=$3/lib:$LD_LIBRARY_PATH cd $1 -if [ ! -e $2.class ] ; then - rm classnoinst.stamp - make classnoinst.stamp -fi +echo "CLASSPATH = $CLASSPATH" +echo "LD_LIBRARY_PATH = $LD_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 $2 *platform.xml *deployment.xml" +java $2 *platform.xml *deployment.xml