You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kato-commits@incubator.apache.org by mo...@apache.org on 2009/11/04 17:50:01 UTC

svn commit: r832817 - /incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/jdi-server.sh

Author: monteith
Date: Wed Nov  4 17:50:01 2009
New Revision: 832817

URL: http://svn.apache.org/viewvc?rev=832817&view=rev
Log:
Add script for standalone JDI server.

Added:
    incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/jdi-server.sh

Added: incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/jdi-server.sh
URL: http://svn.apache.org/viewvc/incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/jdi-server.sh?rev=832817&view=auto
==============================================================================
--- incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/jdi-server.sh (added)
+++ incubator/kato/trunk/org.apache.kato/kato.distro/src/main/scripts/jdi-server.sh Wed Nov  4 17:50:01 2009
@@ -0,0 +1,35 @@
+#!/bin/sh
+#
+##########################################################################
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+##########################################################################
+#
+# jdi-server launcher script
+# 
+# When launched, allows a debugger to attach over JDWP to a dump artifact.
+# 
+#
+# Requires JAVA_HOME to be set to the location of an installed JDK.
+# 
+# Usage:
+#   jdi-server <core file>
+#
+#
+DIR=`dirname $0`
+JARS=$DIR/../lib
+
+$JAVA_HOME/jre/bin/java -classpath $JARS/kato.api-${project.version}.jar:$JARS/kato.cjvmti-${project.version}.jar:$JARS/kato.hprof.api-${project.version}.jar:$JARS/kato.hprof.reader-${project.version}.jar:$JARS/kato.jdi-${project.version}.jar \
+org.apache.kato.tools.jdi.JDIController $@
+