Issue Details (XML | Word | Printable)

Key: MPAPPSERVER-5
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Jason van Zyl
Reporter: Guillaume Lasnier
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Maven 1.x AppServer Plugin

Allow remote debugging for application server

Created: 06/Apr/04 04:58 AM   Updated: 14/Apr/04 09:27 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Original Estimate: 15 minutes
Original Estimate - 15 minutes
Remaining Estimate: 15 minutes
Remaining Estimate - 15 minutes
Time Spent: Not Specified
Remaining Estimate - 15 minutes

Environment: Any OS, any JDK, Tomcat 4.1.x


 Description  « Hide
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>



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Guillaume Lasnier added a comment - 14/Apr/04 08:58 AM
I would like to know if this issue is being processed...

Peter Lynch added a comment - 14/Apr/04 09:27 AM
Applied the patch today.