@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@
