cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r292183 - in /cocoon/trunk: cocoon.bat cocoon.sh
Date Wed, 28 Sep 2005 14:07:46 GMT
Author: vgritsenko
Date: Wed Sep 28 07:07:42 2005
New Revision: 292183

URL: http://svn.apache.org/viewcvs?rev=292183&view=rev
Log:
add osgi-debug

Modified:
    cocoon/trunk/cocoon.bat
    cocoon/trunk/cocoon.sh

Modified: cocoon/trunk/cocoon.bat
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon.bat?rev=292183&r1=292182&r2=292183&view=diff
==============================================================================
--- cocoon/trunk/cocoon.bat (original)
+++ cocoon/trunk/cocoon.bat Wed Sep 28 07:07:42 2005
@@ -110,6 +110,7 @@
 IF ""%1"" == ""servlet-profile"" goto doProfile
 IF ""%1"" == ""yourkit-profile"" goto doYourkitProfile
 IF ""%1"" == ""osgi"" goto doOsgiKnopflerfish
+IF ""%1"" == ""osgi-debug"" goto doOsgiKnopflerfishDebug
 
 echo Usage: cocoon (action)
 echo actions:
@@ -120,6 +121,7 @@
 echo   servlet-profile Run Cocoon in a servlet container and turn on JVM profiling
 echo   yourkit-profile Run Cocoon in a servlet container and turn on Yourkit JVM profiling
 echo   osgi            Run Cocoon within OSGi
+echo   osgi-debug      Run Cocoon within OSGi and turn on remote JVM debug
 goto end
 
 :: ----- Cli -------------------------------------------------------------------
@@ -173,6 +175,10 @@
 
 :doOsgiKnopflerfish
 %EXEC% "%JAVA_HOME%\bin\java.exe" %JAVA_OPTIONS% -jar lib/core/knopflerfish-framework-1.3.3.jar
-init %2 %3 %4 %5 %6 %7 %8 %9
+goto end
+
+:doOsgiKnopflerfishDebug
+%EXEC% "%JAVA_HOME%\bin\java.exe" %JAVA_OPTIONS% -Xdebug -Xrunjdwp:transport=dt_socket,address=%JAVA_DEBUG_PORT%,server=y,suspend=n
-jar lib/core/knopflerfish-framework-1.3.3.jar -init %2 %3 %4 %5 %6 %7 %8 %9
 goto end
 
 :: ----- End -------------------------------------------------------------------

Modified: cocoon/trunk/cocoon.sh
URL: http://svn.apache.org/viewcvs/cocoon/trunk/cocoon.sh?rev=292183&r1=292182&r2=292183&view=diff
==============================================================================
--- cocoon/trunk/cocoon.sh (original)
+++ cocoon/trunk/cocoon.sh Wed Sep 28 07:07:42 2005
@@ -60,6 +60,7 @@
     echo "  servlet-debug     Run Cocoon in a servlet container and turn on JVM remote debug"
     echo "  servlet-profile   Run Cocoon in a servlet container and turn on JVM profiling"
     echo "  osgi              Run Cocoon with the experimental OSGI kernel"
+    echo "  osgi-debug        Run Cocoon with the experimental OSGI kernel and turn on JVM
remote debug"
     exit 1
 }
 
@@ -175,6 +176,12 @@
         # -init prevents knopflerfish from using its persistent info about bundles, seems
safer for now
         KNOP_OPTIONS="-init"
         $JAVA $JAVA_OPTIONS -jar lib/core/knopflerfish-framework-1.3.3.jar $KNOP_OPTIONS
$ARGS
+        ;;
+
+  osgi-debug)
+        # -init prevents knopflerfish from using its persistent info about bundles, seems
safer for now
+        KNOP_OPTIONS="-init"
+        $JAVA $JAVA_OPTIONS $JAVA_DEBUG_ARGS -jar lib/core/knopflerfish-framework-1.3.3.jar
$KNOP_OPTIONS $ARGS
         ;;
 
   *)



Mime
View raw message