anchor.diff:  @if "%OS%" == "Windows_NT" setlocal
   
   if "%OS%" == "Windows_NT" (
  -  set "DIRNAME=%~dp0%"
  +  set "BASE_DIR=%~dp0%"
   ) else (
  -  set DIRNAME=.\
  +  set BASE_DIR=.\
   )
  -
  -set "BASE_DIR=%CD%"
   
   rem Setup JBoss specific properties
   if "x%JAVA_HOME%" == "x" (
  
positive.code:   set "JAVA=%JAVA_HOME%\bin\java"
  )
  
  :setModularJdk
      "%JAVA%" --add-modules=java.se -version >nul 2>&1 && (set MODULAR_JDK=true) || (set MODULAR_JDK=false)
  goto :eof
  
  :setDefaultModularJvmOptions
    call :setModularJdk
    if "!MODULAR_JDK!" == "true" (
      echo "%~1" | findstr /I "\-\-add\-modules" > nul
      if errorlevel == 1 (
        rem Set default modular jdk options
        set "DEFAULT_MODULAR_JVM_OPTIONS=!DEFAULT_MODULAR_JVM_OPTIONS! --add-exports=java.base/sun.nio.ch=ALL-UNNAMED"
  
negative.code:     ) else (
        set "DEFAULT_MODULAR_JVM_OPTIONS="
      )
  )
  set "JAVA_OPTS=!JAVA_OPTS! !DEFAULT_MODULAR_JVM_OPTIONS!"
  setlocal DisableDelayedExpansion
  
  