Applied MPJBOSS-14. Add new debug scripts to start jboss in debug mode.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@115477 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
44181fb510
commit
41bb9b7dd1
@ -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')}">
|
||||
|
||||
@ -77,6 +77,9 @@ maven.jboss.hostname = localhost
|
||||
# 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
|
||||
|
||||
@ -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>
|
||||
@ -65,6 +65,11 @@
|
||||
<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>
|
||||
<developer>
|
||||
|
||||
14
jboss/src/plugin-resources/debug
Normal file
14
jboss/src/plugin-resources/debug
Normal file
@ -0,0 +1,14 @@
|
||||
#! /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@
|
||||
32
jboss/src/plugin-resources/debug.bat
Normal file
32
jboss/src/plugin-resources/debug.bat
Normal file
@ -0,0 +1,32 @@
|
||||
@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@
|
||||
@ -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
|
||||
|
||||
@ -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>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user