anchor.diff:  set "ORIGIN=http://%AUTHORITY%"
   goto gotOrigin
   :noAuthority
  -for /f %%i in ('hostname') do set "ORIGIN=%%i"
  +for /f %%i in ('hostname') do set "ORIGIN=http://%%i"
   if "%PORT%" == "80" goto gotOrigin
  -if "%SSLPORT%" == "443" goto gotOrigin
   set "ORIGIN=%ORIGIN%:%PORT%"
   :gotOrigin
   
  
positive.code: IF NOT EXIST "%BASEDIR%\run" MKDIR "%BASEDIR%\run"
  
  rem Execute Java with the applicable properties
  "%JAVA_HOME%\bin\java" -server "-Duser.home=%BASEDIR%" "-Djava.io.tmpdir=%TMPDIR%" "-Djava.util.logging.config.file=%LOGGING%" "-Djava.mail.properties=%MAIL%" -classpath "%CLASSPATH%" %JAVA_OPTS% %SSL_OPTS% %MAINCLASS% --pid "%PID%" -d "%BASEDIR%" -o "%ORIGIN%" -r "%REPOSITORY%" %OPT% %CMD_LINE_ARGS%
  goto end
  
  :doStart
  
negative.code: :gotOpt
  
  if "%PORT%" == "" goto gotPortOpt
  set "OPT=%OPT% -p %PORT: = -p %"
  :gotPortOpt
  
  if "%SSLPORT%" == "" goto gotSslPortOpt
  set "OPT=%OPT% -p %SSLPORT: = -p %"
  :gotSslPortOpt
  
  set "OPT=%OPT% -o %ORIGIN: = -o %"
  
  
  rem ----- Execute The Requested Command ---------------------------------------
  
  