[logback-dev] svn commit: r905 - logback/trunk

noreply.seb at qos.ch noreply.seb at qos.ch
Mon Nov 13 17:44:24 CET 2006


Author: seb
Date: Mon Nov 13 17:44:24 2006
New Revision: 905

Added:
   logback/trunk/setExamplesClasspath.sh

Log:
first try of a script that sets the classpath for logback and examples

Added: logback/trunk/setExamplesClasspath.sh
==============================================================================
--- (empty file)
+++ logback/trunk/setExamplesClasspath.sh	Mon Nov 13 17:44:24 2006
@@ -0,0 +1,24 @@
+#!/bin/sh
+
+##
+# This script will add logback jars to your classpath.
+# It will preserve the initial classpath.
+##
+
+oldClassPath=$CLASSPATH
+#echo $oldClassPath
+
+NEW_CLASSPATH=${PWD}/logback-access-0.6-SNAPSHOT.jar
+NEW_CLASSPATH=${NEW_CLASSPATH}:${PWD}/logback-classic-0.6-SNAPSHOT.jar
+NEW_CLASSPATH=${NEW_CLASSPATH}:${PWD}/logback-classic-0.6-SNAPSHOT-tests.jar
+NEW_CLASSPATH=${NEW_CLASSPATH}:${PWD}/logback-core-0.6-SNAPSHOT.jar
+NEW_CLASSPATH=${NEW_CLASSPATH}:${PWD}/logback-core-0.6-SNAPSHOT-tests.jar
+NEW_CLASSPATH=${NEW_CLASSPATH}:${PWD}/logback-examples/logback-examples-0.6-SNAPSHOT.jar
+
+#echo $NEW_CLASSPATH
+
+if [ "$oldClassPath" != "" ]; then
+    export CLASSPATH=${NEW_CLASSPATH}:${oldClassPath}
+else
+   	export CLASSPATH=${NEW_CLASSPATH}
+fi
\ No newline at end of file



More information about the logback-dev mailing list