You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by de...@apache.org on 2009/03/12 16:48:55 UTC
svn commit: r752906 -
/webservices/axis2/trunk/java/modules/tool/script/axis2server.sh
Author: deepal
Date: Thu Mar 12 15:48:54 2009
New Revision: 752906
URL: http://svn.apache.org/viewvc?rev=752906&view=rev
Log:
apply the patch in https://issues.apache.org/jira/browse/AXIS2-4261
Thank you for the patch
Modified:
webservices/axis2/trunk/java/modules/tool/script/axis2server.sh
Modified: webservices/axis2/trunk/java/modules/tool/script/axis2server.sh
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/tool/script/axis2server.sh?rev=752906&r1=752905&r2=752906&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/tool/script/axis2server.sh (original)
+++ webservices/axis2/trunk/java/modules/tool/script/axis2server.sh Thu Mar 12 15:48:54 2009
@@ -32,5 +32,30 @@
# Get the context and from that find the location of setenv.sh
. `dirname $0`/setenv.sh
-java -classpath "$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server \
--repo "$AXIS2_HOME"/repository -conf "$AXIS2_HOME"/conf/axis2.xml $*
+while [ $# -ge 1 ]; do
+
+if [ "$1" = "-xdebug" ]; then
+ XDEBUG="-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,address=8000"
+ shift
+
+elif [ "$1" = "-h" ]; then
+ echo "Usage: axis2server.sh"
+ echo "commands:"
+ echo " -xdebug Start Axis2 Server under JPDA debugger"
+ echo " -h help"
+ shift
+ exit 0
+
+ else
+ echo "Error: unknown command:$1"
+ echo "For help: axis2server.sh -h"
+ shift
+ exit 1
+ fi
+
+done
+
+
+
+java $XDEBUG -classpath "$AXIS2_CLASSPATH" org.apache.axis2.transport.SimpleAxis2Server \
+ -repo "$AXIS2_HOME"/repository -conf "$AXIS2_HOME"/conf/axis2.xml $*