projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Hide new 'lttng_counter_*' private symbols
[lttng-ust.git]
/
doc
/
examples
/
java-jul
/
run
diff --git
a/doc/examples/java-jul/run
b/doc/examples/java-jul/run
index 37a3cfdf043b0a5df58a0df280434433a9a10c7a..eb340da88fac2efc6d77851f398773a38c2561fe 100755
(executable)
--- a/
doc/examples/java-jul/run
+++ b/
doc/examples/java-jul/run
@@
-7,19
+7,27
@@
#
DIR=`dirname $0`
#
DIR=`dirname $0`
-JARFILE="liblttng-ust-agent.jar"
+JARFILE_COMMON="lttng-ust-agent-common.jar"
+JARFILE_JUL="lttng-ust-agent-jul.jar"
+JAVA_OPTIONS=""
cd $DIR
if [ -f "$DIR/.intree" ]; then
cd $DIR
if [ -f "$DIR/.intree" ]; then
- CLASSPATH="../../../liblttng-ust-java-agent/java/$JARFILE"
+ CLASSPATH="../../../liblttng-ust-java-agent/java/lttng-ust-agent-common/$JARFILE_COMMON"
+ CLASSPATH="$CLASSPATH:../../../liblttng-ust-java-agent/java/lttng-ust-agent-jul/$JARFILE_JUL"
LIBPATH="../../../liblttng-ust-java-agent/jni/jul/.libs"
else
LIBPATH="../../../liblttng-ust-java-agent/jni/jul/.libs"
else
- CLASSPATH="/usr/local/share/java/$JARFILE:/usr/share/java/$JARFILE"
+ CLASSPATH="/usr/local/share/java/$JARFILE_COMMON:/usr/share/java/$JARFILE_COMMON"
+ CLASSPATH="$CLASSPATH:/usr/local/share/java/$JARFILE_JUL:/usr/share/java/$JARFILE_JUL"
# Use system defined java.library.path
#LIBPATH="/usr/local/lib:/usr/lib"
fi
# Use system defined java.library.path
#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.023213 seconds
and
4
git commands to generate.