The following comment has been added to this issue:

     Author: Guillaume Lasnier
    Created: Wed, 14 Apr 2004 8:58 AM
       Body:
I would like to know if this issue is being processed...
---------------------------------------------------------------------
View this comment:
  
http://jira.codehaus.org/secure/ViewIssue.jspa?key=MPAPPSERVER-5&page=comments#action_18616

---------------------------------------------------------------------
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: Wed, 14 Apr 2004 8: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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to