karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r1058679 - in /karaf/trunk/assembly/src/main/distribution: unix-shell/bin/karaf windows-text/bin/karaf.bat
Date Thu, 13 Jan 2011 17:31:49 GMT
Author: gnodet
Date: Thu Jan 13 17:31:49 2011
New Revision: 1058679

URL: http://svn.apache.org/viewvc?rev=1058679&view=rev
Log:
[KARAF-386] Add a debug argument to bin/karaf shell script for easier remote debugging

Modified:
    karaf/trunk/assembly/src/main/distribution/unix-shell/bin/karaf
    karaf/trunk/assembly/src/main/distribution/windows-text/bin/karaf.bat

Modified: karaf/trunk/assembly/src/main/distribution/unix-shell/bin/karaf
URL: http://svn.apache.org/viewvc/karaf/trunk/assembly/src/main/distribution/unix-shell/bin/karaf?rev=1058679&r1=1058678&r2=1058679&view=diff
==============================================================================
--- karaf/trunk/assembly/src/main/distribution/unix-shell/bin/karaf (original)
+++ karaf/trunk/assembly/src/main/distribution/unix-shell/bin/karaf Thu Jan 13 17:31:49 2011
@@ -329,6 +329,13 @@ run() {
             rm -Rf $KARAF_DATA
             shift
             ;;
+        'debug')
+            if [ "x$JAVA_DEBUG_OPTS" = "x" ]; then
+                JAVA_DEBUG_OPTS="$DEFAULT_JAVA_DEBUG_OPTS"
+            fi
+            JAVA_OPTS="$JAVA_DEBUG_OPTS $JAVA_OPTS"
+            shift
+            ;;
     esac
 
     SEP=":"

Modified: karaf/trunk/assembly/src/main/distribution/windows-text/bin/karaf.bat
URL: http://svn.apache.org/viewvc/karaf/trunk/assembly/src/main/distribution/windows-text/bin/karaf.bat?rev=1058679&r1=1058678&r2=1058679&view=diff
==============================================================================
--- karaf/trunk/assembly/src/main/distribution/windows-text/bin/karaf.bat (original)
+++ karaf/trunk/assembly/src/main/distribution/windows-text/bin/karaf.bat Thu Jan 13 17:31:49
2011
@@ -215,6 +215,7 @@ if "%KARAF_PROFILER%" == "" goto :RUN
     if "%1" == "server" goto :EXECUTE_SERVER
     if "%1" == "client" goto :EXECUTE_CLIENT
     if "%1" == "clean" goto :EXECUTE_CLEAN
+    if "%1" == "debug" goto :EXECUTE_DEBUG
     goto :EXECUTE
 
 :EXECUTE_STOP
@@ -241,6 +242,11 @@ if "%KARAF_PROFILER%" == "" goto :RUN
     shift
     goto :RUN_LOOP
 
+:EXECUTE_DEBUG
+    if "%JAVA_DEBUG_OPTS%" == "" set JAVA_DEBUG_OPTS=%DEFAULT_JAVA_DEBUG_OPTS%
+    set "JAVA_OPTS=%JAVA_DEBUG_OPTS% %JAVA_OPTS%"
+    shift
+    goto :RUN_LOOP
 
 :EXECUTE
     SET ARGS=%1 %2 %3 %4 %5 %6 %7 %8



Mime
View raw message