You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by ji...@codehaus.org on 2004/04/06 10:59:25 UTC
[jira] Created: (MPAPPSERVER-5) Allow remote debugging for application server
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPAPPSERVER-5
Here is an overview of the issue:
---------------------------------------------------------------------
Key: MPAPPSERVER-5
Summary: Allow remote debugging for application server
Type: Improvement
Status: Open
Priority: Minor
Original Estimate: 15 minutes
Time Spent: Unknown
Remaining: 15 minutes
Project: maven-appserver-plugin
Assignee: Jason van Zyl
Reporter: Guillaume Lasnier
Created: Tue, 6 Apr 2004 4:58 AM
Updated: Tue, 6 Apr 2004 4:58 AM
Environment: Any OS, any JDK, Tomcat 4.1.x
Description:
Defines a new boolean property, maven.appserver.debug, that permits turning on/off remote debugging using the JDK capabilities. Optional properties, allow to customize remote debugging. Below is the patch that takes into account this improvement.
Index: plugin.properties
===================================================================
retrieving revision 1.4
diff -u -r1.4 plugin.properties
--- plugin.properties 4 Mar 2004 17:59:26 -0000 1.4
+++ plugin.properties 31 Mar 2004 15:29:17 -0000
@@ -103,3 +103,12 @@
maven.appserver.conf.dir=${maven.conf.dir}/appserver/${maven.appserver.fullname}
+#-------------------------------------------------------#
+# DEBUG REQUIRED PROPERTIES #
+#-------------------------------------------------------#
+maven.appserver.debug=false
+maven.appserver.debug.transport=dt_socket
+maven.appserver.debug.address=8000
+maven.appserver.debug.server=y
+maven.appserver.debug.suspend=n
+
Index: src/plugin-resources/tomcat-4.1.x.jelly
===================================================================
retrieving revision 1.2
diff -u -r1.2 tomcat-4.1.x.jelly
--- src/plugin-resources/tomcat-4.1.x.jelly 4 Mar 2004 17:59:27 -0000 1.2
+++ src/plugin-resources/tomcat-4.1.x.jelly 31 Mar 2004 15:29:17 -0000
@@ -94,6 +94,10 @@
</classpath>
<jvmarg value="-Dcatalina.base=${maven.appserver.dir}"/>
<jvmarg value="-Dcatalina.home=${maven.appserver.home}"/>
+ <j:if test="${maven.appserver.debug}">
+ <jvmarg value="-Xdebug"/>
+ <jvmarg value="-Xrunjdwp:transport=${maven.appserver.debug.transport},address=${maven.appserver.debug.address},server=${maven.appserver.debug.server},suspend=${maven.appserver.debug.suspend}"/>
+ </j:if>
<arg value="start"/>
</java>
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org