projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: running java examples out of tree
[lttng-ust.git]
/
doc
/
examples
/
java-jul
/
run
diff --git
a/doc/examples/java-jul/run
b/doc/examples/java-jul/run
index 37a3cfdf043b0a5df58a0df280434433a9a10c7a..6deb6fd8ca04741de67cdfc3997bf12b6aeed094 100755
(executable)
--- a/
doc/examples/java-jul/run
+++ b/
doc/examples/java-jul/run
@@
-8,6
+8,7
@@
DIR=`dirname $0`
JARFILE="liblttng-ust-agent.jar"
DIR=`dirname $0`
JARFILE="liblttng-ust-agent.jar"
+JAVA_OPTIONS=""
cd $DIR
cd $DIR
@@
-20,6
+21,10
@@
else
#LIBPATH="/usr/local/lib:/usr/lib"
fi
#LIBPATH="/usr/local/lib:/usr/lib"
fi
-java -classpath "$CLASSPATH:." -Djava.library.path="$LIBPATH" Hello
+if [ "x$LIBPATH" != "x" ]; then
+ JAVA_OPTIONS="$JAVA_OPTIONS -Djava.library.path=\"$LIBPATH\""
+fi
+
+java -classpath "$CLASSPATH:." $JAVA_OPTIONS Hello
cd -
cd -
This page took
0.022902 seconds
and
4
git commands to generate.