You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by vm...@apache.org on 2004/06/13 19:15:58 UTC
cvs commit: maven-plugins/jboss plugin.properties project.xml plugin.jelly
vmassol 2004/06/13 10:15:58
Modified: jboss/xdocs properties.xml changes.xml
jboss plugin.properties project.xml plugin.jelly
Added: jboss/src/plugin-resources debug debug.bat
Log:
Applied MPJBOSS-14. Add new debug scripts to start jboss in debug mode.
Revision Changes Path
1.8 +11 -0 maven-plugins/jboss/xdocs/properties.xml
Index: properties.xml
===================================================================
RCS file: /home/cvs/maven-plugins/jboss/xdocs/properties.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- properties.xml 27 Apr 2004 19:09:25 -0000 1.7
+++ properties.xml 13 Jun 2004 17:15:58 -0000 1.8
@@ -173,6 +173,17 @@
</p>
</td>
</tr>
+ <tr>
+ <td>maven.jboss.debug.port</td>
+ <td>Yes</td>
+ <td>
+ <p>
+ The port to connect to or the shared mem address to use in
+ the debug scripts. This property
+ defaults to <code>4142</code>.
+ </p>
+ </td>
+ </tr>
</table>
</section>
</body>
1.28 +6 -0 maven-plugins/jboss/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/maven-plugins/jboss/xdocs/changes.xml,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- changes.xml 16 May 2004 02:36:19 -0000 1.27
+++ changes.xml 13 Jun 2004 17:15:58 -0000 1.28
@@ -24,6 +24,12 @@
<author email="vmassol@pivolis.com">Vincent Massol</author>
</properties>
<body>
+ <release version="1.6-SNAPSHOT" date="in CVS">
+ <action dev="vmassol" type="add" issue="MPJBOSS-14" due-to="Marc-Antoine Guarrigue">
+ Added new debug scripts that add the <code>-Xdebug</code> and other debugging
+ options to enable remote debugging of a JBoss server.
+ </action>
+ </release>
<release version="1.5" date="2004-05-15">
<action dev="vmassol" type="fix" issue="MPJBOSS-9" due-to="Rob Dupuis">Removed trailing white space in default values for the
<code>maven.jboss.jmx.url.deploy.3.2</code>and
1.1 maven-plugins/jboss/src/plugin-resources/debug
Index: debug
===================================================================
#! /bin/sh
# ----------------------------------------------------------------------------
# Default JBoss start up shell script in debug modes. It calls the default script found
# in JBOSS_HOME/bin.
# ----------------------------------------------------------------------------
export JAVA_OPTS="-Djboss.server.home.dir=@jboss.server.home.dir@ -Djboss.server.home.url=@jboss.server.home.url@ -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=@jboss.server.debug.port@,suspend=n"
#Xrunjdwp... == the info on how to connect to do remote debugging
#server=y == start in server mode (i.e. wait for connections, don't go out looking to connect
#transport=dt_socked == use sockets, this works (I think) only on unix (I'm on a mac), on Windows you have to use shared memory via the transport=dt_shmem argument instead. I'm fairly sure this works but its been a while since I tried it on Windows. YMMV. here is the official info on the connection arguments
#address=4142 == the port to connect to or the shared mem address to use
#suspend=n == don't wait for a debugger to tell you what to do, go ahead and launch
@maven.jboss.home@/bin/run.sh -c @maven.jboss.conf.name@
1.1 maven-plugins/jboss/src/plugin-resources/debug.bat
Index: debug.bat
===================================================================
@REM ----------------------------------------------------------------------------
@REM Copyright 2004 The Apache Software Foundation.
@REM
@REM Licensed under the Apache License, Version 2.0 (the "License");
@REM you may not use this file except in compliance with the License.
@REM You may obtain a copy of the License at
@REM
@REM http://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing, software
@REM distributed under the License is distributed on an "AS IS" BASIS,
@REM WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@REM See the License for the specific language governing permissions and
@REM limitations under the License.
@REM ----------------------------------------------------------------------------
@REM
@REM ----------------------------------------------------------------------------
@REM Default JBoss start up batch script in debug mode. It calls the default script found
@REM in JBOSS_HOME/bin.
@REM ----------------------------------------------------------------------------
@if "%OS%" == "Windows_NT" setlocal
@set NOPAUSE=true
@set JAVA_OPTS=-Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=@maven.jboss.debug.port@,suspend=n -Djboss.server.home.dir=@jboss.server.home.dir@ -Djboss.server.home.url=@jboss.server.home.url@
@REM Xrunjdwp... == the info on how to connect to do remote debugging
@REM server=y == start in server mode (i.e. wait for connections, don't go out looking to connect
@REM transport=dt_socked == use sockets, this works (I think) only on unix (I'm on a mac), on Windows you have to use shared memory via the transport=dt_shmem argument instead. I'm fairly sure this works but its been a while since I tried it on Windows. YMMV. here is the official info on the connection arguments
@REM address=4142 == the port to connect to or the shared mem address to use
@REM suspend=n == don't wait for a debugger to tell you what to do, go ahead and launch
@call @maven.jboss.home@\bin\run.bat -c @maven.jboss.conf.name@
1.9 +3 -0 maven-plugins/jboss/plugin.properties
Index: plugin.properties
===================================================================
RCS file: /home/cvs/maven-plugins/jboss/plugin.properties,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- plugin.properties 27 Apr 2004 19:16:02 -0000 1.8
+++ plugin.properties 13 Jun 2004 17:15:58 -0000 1.9
@@ -77,6 +77,9 @@
# JBoss version
maven.jboss.version=3.2
+# JBoss debug port
+maven.jboss.debug.port=4142
+
# ---------------------------------------------------------------------------
# Note: The properties listed below are only needed for the deploy/undeploy
# goals
1.28 +6 -1 maven-plugins/jboss/project.xml
Index: project.xml
===================================================================
RCS file: /home/cvs/maven-plugins/jboss/project.xml,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- project.xml 16 May 2004 02:36:19 -0000 1.27
+++ project.xml 13 Jun 2004 17:15:58 -0000 1.28
@@ -23,7 +23,7 @@
<pomVersion>3</pomVersion>
<id>maven-jboss-plugin</id>
<name>Maven JBoss plugin</name>
- <currentVersion>1.5</currentVersion>
+ <currentVersion>1.6-SNAPSHOT</currentVersion>
<description>Plugin for JBoss</description>
<shortDescription>JBoss plugin</shortDescription>
<url>http://maven.apache.org/reference/plugins/jboss/</url>
@@ -64,6 +64,11 @@
<id>1.5</id>
<name>1.5</name>
<tag>MAVEN_JBOSS_1_5</tag>
+ </version>
+ <version>
+ <id>1.6</id>
+ <name>1.6</name>
+ <tag>HEAD</tag>
</version>
</versions>
<developers>
1.20 +1 -0 maven-plugins/jboss/plugin.jelly
Index: plugin.jelly
===================================================================
RCS file: /home/cvs/maven-plugins/jboss/plugin.jelly,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- plugin.jelly 4 Mar 2004 18:35:59 -0000 1.19
+++ plugin.jelly 13 Jun 2004 17:15:58 -0000 1.20
@@ -87,6 +87,7 @@
<ant:filter token="maven.jboss.conf.name" value="${maven.jboss.conf.name}"/>
<ant:filter token="maven.jboss.version" value="${maven.jboss.version}"/>
<ant:filter token="maven.jboss.hostname" value="${maven.jboss.hostname}"/>
+ <ant:filter token="maven.jboss.debug.port" value="${maven.jboss.debug.port}"/>
<j:choose>
<j:when test="${systemScope['os.name'].startsWith('Windows')}">
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org