directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1104179 - /directory/apacheds/trunk/service/apacheds.sh
Date Tue, 17 May 2011 12:02:37 GMT
Author: kayyagari
Date: Tue May 17 12:02:37 2011
New Revision: 1104179

URL: http://svn.apache.org/viewvc?rev=1104179&view=rev
Log:
o added a -debug option to enable remote debugging

Modified:
    directory/apacheds/trunk/service/apacheds.sh

Modified: directory/apacheds/trunk/service/apacheds.sh
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/service/apacheds.sh?rev=1104179&r1=1104178&r2=1104179&view=diff
==============================================================================
--- directory/apacheds/trunk/service/apacheds.sh (original)
+++ directory/apacheds/trunk/service/apacheds.sh Tue May 17 12:02:37 2011
@@ -35,4 +35,9 @@ cp log4j.properties target/instance/conf
 mkdir -p target/instance/partitions
 mkdir -p target/instance/log
 
-java -Dlog4j.configuration=file:./target/instance/conf/log4j.properties -Dapacheds.log.dir=./target/instance/log
-jar $JAR ./target/instance
+if [ "$1" = -debug ] ; then
+  echo 'remote debugging enabled in suspension mode, attach a debugger to continue execution'
+  JAVA_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8008 -Xnoagent
-Djava.compiler=NONE"
+fi
+
+java $JAVA_OPTS -Dlog4j.configuration=file:./target/instance/conf/log4j.properties -Dapacheds.log.dir=./target/instance/log
-jar $JAR ./target/instance



Mime
View raw message