anchor.diff:    )
     if "!LOGPATH!" == "" (
       echo ERROR: You need to specify a path for the service log
  +    goto endBatch
  +  )
  +  shift
  +  shift
  +  goto LoopArgs
  +)
  +if /I "%~1"== "/properties" (
  +  set PROPSPATH=
  +  if not "%~2"=="" (
  +    set T=%~2
  +    if not "!T:~0,1!"=="/" (
  +      set PROPSPATH=%~2
  +    )
  +  )
  +  if "!PROPSPATH!" == "" (
  +    echo ERROR: You need to specify a path for the properties file
  +    goto endBatch
  +  )
  +  shift
  +  shift
  +  goto LoopArgs
  +)
  +if /I "%~1"== "/environment" (
  +  set ENV_VARS=
  +  if not "%~2"=="" (
  +    set T=%~2
  +    if not "!T:~0,1!"=="/" (
  +      set ENV_VARS=%~2
  +    )
  +  )
  +  if "!ENV_VARS!" == "" (
  +    echo ERROR: You need to specify a list of environment variables
       goto endBatch
     )
     shift
  
positive.code: )
  
  @rem quotes around the "%DESCRIPTION%" and "%DISPLAYNAME" but nowhere else
  echo %PRUNSRV% install %SHORTNAME% %RUNAS% --DisplayName="%DISPLAYNAME%" --Description="%DESCRIPTION%" --LogLevel=%LOGLEVEL% --LogPath=%LOGPATH% --LogPrefix=service --StdOutput=%STDOUT% --StdError=%STDERR% --StartMode=exe --Startup=%STARTUP_MODE% --StartImage=cmd.exe --StartPath=%START_PATH% ++StartParams=%STARTPARAM% --StopMode=exe --StopImage=cmd.exe --StopPath=%STOP_PATH%  ++StopParams=%STOPPARAM%
  %PRUNSRV% install %SHORTNAME% %RUNAS% --DisplayName="%DISPLAYNAME%" --Description="%DESCRIPTION%" --LogLevel=%LOGLEVEL% --LogPath=%LOGPATH% --LogPrefix=service --StdOutput=%STDOUT% --StdError=%STDERR% --StartMode=exe --Startup=%STARTUP_MODE% --StartImage=cmd.exe --StartPath=%START_PATH% ++StartParams=%STARTPARAM% --StopMode=exe --StopImage=cmd.exe --StopPath=%STOP_PATH%  ++StopParams=%STOPPARAM%
  
  @if /I "%ISDEBUG%" == "true" (
    @echo off
  
negative.code: set IS_DOMAIN=false
  set LOGLEVEL=INFO
  set LOGPATH=
  set PROPSPATH=
  set ENV_VARS=
  set JBOSSUSER=
  set JBOSSPASS=
  set SERVICE_USER=
  