Maven 1.x AppServer Plugin

Allow remote debugging for application server

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Environment:
    Any OS, any JDK, Tomcat 4.1.x
  • Number of attachments :
    0

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>

Activity

Hide
Guillaume Lasnier added a comment -

I would like to know if this issue is being processed...

Show
Guillaume Lasnier added a comment - I would like to know if this issue is being processed...
Hide
Peter Lynch added a comment -

Applied the patch today.

Show
Peter Lynch added a comment - Applied the patch today.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

Estimated:
15m
Original Estimate - 15 minutes
Remaining:
15m
Remaining Estimate - 15 minutes
Logged:
Not Specified
Time Spent - Not Specified