JUL: install documentation and jar file
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 15 Nov 2013 16:59:46 +0000 (11:59 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 15 Nov 2013 16:59:46 +0000 (11:59 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
configure.ac
doc/Makefile.am
doc/java-util-logging.txt [new file with mode: 0644]
liblttng-ust-jul/Makefile.am
liblttng-ust-jul/README [deleted file]

index 37ea8c656079b73cc870cfdb1c7a3333bd47c47a..1eda569c9caba4e738b60ede2621a71168d2c4a0 100644 (file)
@@ -273,6 +273,9 @@ AC_ARG_WITH([lttng-system-rundir],
 AC_DEFINE_UNQUOTED([LTTNG_SYSTEM_RUNDIR], ["$lttng_system_rundir"],
        [LTTng system runtime directory])
 
+lttnglibjavadir="${libdir}/lttng/java"
+AC_SUBST(lttnglibjavadir)
+
 AC_CONFIG_FILES([
        Makefile
        doc/Makefile
index ccd6d189f8a98500c2dc8962be9abd94ffd2e501..4349713b38f34c09233c701d35e0d6c858ad8d24 100644 (file)
@@ -3,3 +3,5 @@ SUBDIRS = . examples
 dist_man_MANS = man/lttng-gen-tp.1 \
        man/lttng-ust.3 \
        man/lttng-ust-cyg-profile.3
+
+dist_doc_DATA = java-util-logging.txt
diff --git a/doc/java-util-logging.txt b/doc/java-util-logging.txt
new file mode 100644 (file)
index 0000000..9f827e6
--- /dev/null
@@ -0,0 +1,41 @@
+The support for JUL needs to be explicitly enabled when lttng-ust is
+configured, e.g.:
+
+dependency: openjdk-7-jdk
+    ./configure --with-java-jdk=/usr/lib/jvm/java-7-openjdk --with-jni-interface
+
+On Debian system for instance you can simply use the "default-java" path:
+
+    ./configure --with-java-jdk=/usr/lib/jvm/default-java --with-jni-interface
+
+Note that the OpenJDK 7 is used for development and continuous integration thus
+we directly support that version for this library. However, it has been tested
+with OpenJDK 6 also. Please let us know if other Java version (commercial or
+not) work with this library.
+
+The LTTng Java Agent for JUL support is typically installed here:
+
+/usr/local/lib/lttng/java/liblttng-ust-jul.jar
+
+After building, you can use the "liblttng-ust-jul.jar" file in a Java project.
+It requires "liblttng-ust-jul.so" which is installed by the build system when
+doing "make install". Make sure that your Java application can find this shared
+object with the "java.library.path".
+
+In order to enable the agent in your Java application, you simply have to add
+this as early as you can in the runtime process.
+
+import org.lttng.ust.jul.LTTngAgent;
+[...]
+       private static LTTngAgent lttngAgent;
+       [...]
+       lttngAgent = LTTngAgent.getLTTngAgent();
+
+This will initialize automatically the singleton LTTngAgent, and will
+return when session daemon registration is done. If no session daemon is
+available, the execution will continue and the agent will retry every
+3 seconds.
+
+Once registered, it is adds a thread inside your Java application and will be
+able to automatically use every Logger object and map them to the jul_event
+tracepoint of the JNI interface.
index ac3d521768f91350c79e2b58692edda144e75465..e4f0480bfd863635ea2f298c2a690a76b82aed4c 100644 (file)
@@ -8,6 +8,8 @@ nodist_liblttng_ust_jul_jni_la_SOURCES = org_lttng_ust_jul_LTTngUst.h
 dist_noinst_DATA = $(LTTNG_JUL_SRCDIR)/LTTngUst.java
 liblttng_ust_jul_jni_la_LIBADD = -lc -L$(top_builddir)/liblttng-ust/.libs -llttng-ust
 
+lttnglibjava_DATA = liblttng-ust-jul.jar
+
 LTTNG_JUL_SRCDIR = $(srcdir)/org/lttng/ust/jul
 LTTNG_JUL_DESTDIR = $(builddir)/org/lttng/ust/jul
 
diff --git a/liblttng-ust-jul/README b/liblttng-ust-jul/README
deleted file mode 100644 (file)
index 6e2ee98..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-This directory contains the LTTng Java Agent for JUL support.
-
-Configuration examples to build this library:
-
-dependency: openjdk-7-jdk
-    ./configure --with-java-jdk=/usr/lib/jvm/java-7-openjdk --with-jni-interface
-
-On Debian system for instance you can simply use the "default-java" path:
-
-    ./configure --with-java-jdk=/usr/lib/jvm/default-java --with-jni-interface
-
-Note that the OpenJDK 7 is used for development and continuous integration thus
-we directly support that version for this library. However, it has been tested
-with OpenJDK 6 also. Please let us know if other Java version (commercial or
-not) work with this library.
-
-After building, you can use the "liblttng-ust-jul.jar" file in a Java project.
-It requires "liblttng-ust-jul.so" which is installed by the build system when
-doing "make install". Make sure that your Java application can find this shared
-object with the "java.library.path".
-
-In order to enable the agent in your Java application, you simply have to add
-this as early as you can in the runtime process.
-
-import org.lttng.ust.jul.LTTngAgent;
-[...]
-       private static LTTngAgent lttngAgent;
-       [...]
-       lttngAgent = LTTngAgent.getLTTngAgent();
-
-This will initialize automatically the singleton LTTngAgent, it will stall
-your application until the session daemon registration is done. If no session
-daemon is available, the execution will continue and the agent will retry at
-each 3 seconds.
-
-Once registered, it is adds a thread inside your Java application and will be
-able to automatically use every Logger object and map them to the jul_event
-tracepoint of the JNI interface (see LTTngUst.c/.java).
This page took 0.031129 seconds and 4 git commands to generate.