build/buildutils/omake.bat
changeset 87 1627c337e51e
parent 80 d6dafc5d983f
equal deleted inserted replaced
80:d6dafc5d983f 87:1627c337e51e
    17 
    17 
    18 rem -------------------
    18 rem -------------------
    19 rem Determine java root
    19 rem Determine java root
    20 setlocal
    20 setlocal
    21 set JAVA_SRC_ROOT=
    21 set JAVA_SRC_ROOT=
       
    22 set RECURSION=. .. ..\.. ..\..\.. ..\..\..\.. ..\..\..\..\.. ..\..\..\..\..\.. ..\..\..\..\..\..\.. ..\..\..\..\..\..\..\.. ..\..\..\..\..\..\..\..\.. ..\..\..\..\..\..\..\..\..\..
    22 
    23 
    23 rem See if we are within jrt package (indepent of actual location)
    24 rem See if we are within jrt package (indepent of actual location)
    24 for %%a in (. .. ..\.. ..\..\.. ..\..\..\.. ..\..\..\..\.. ..\..\..\..\..\.. ..\..\..\..\..\..\..) do if "%JAVA_SRC_ROOT%" == "" if exist %%a\build\Makefile.comp call :setroot %%a
    25 for %%a in (%RECURSION%) do if "%JAVA_SRC_ROOT%" == "" if exist %%a\build\Makefile.comp call :setroot %%a
    25 if not "%JAVA_SRC_ROOT%" == "" goto resolved
    26 if not "%JAVA_SRC_ROOT%" == "" goto resolved
    26 
    27 
    27 rem See if we are within jrtext package co-located with jrt (indepent of actual location)
    28 rem See if we are within jrtext package co-located with jrt (indepent of actual location)
    28 for %%a in (. .. ..\.. ..\..\.. ..\..\..\.. ..\..\..\..\.. ..\..\..\..\..\.. ..\..\..\..\..\..\..) do if "%JAVA_SRC_ROOT%" == "" if "%%~nxa" == "jrtext" if exist %%a\build\omj.pri if exist %%a\..\jrt\build\Makefile.comp call :setroot %%a\..\jrt
    29 for %%a in (%RECURSION%) do if "%JAVA_SRC_ROOT%" == "" if "%%~nxa" == "jrtext" if exist %%a\build\omj.pri if exist %%a\..\jrt\build\Makefile.comp call :setroot %%a\..\jrt
    29 if not "%JAVA_SRC_ROOT%" == "" goto resolved
    30 if not "%JAVA_SRC_ROOT%" == "" goto resolved
    30 
    31 
    31 rem See if this is subdirectory within \ext\app\jrtext
    32 rem See if this is subdirectory within \ext\app\jrtext
    32 if "%JAVA_SRC_ROOT%" == "" for /F "delims=\ tokens=2-4" %%a in ("%CD%") do if "%%a\%%b\%%c" == "ext\app\jrtext" set JAVA_SRC_ROOT=\sf\app\jrt
    33 if "%JAVA_SRC_ROOT%" == "" for /F "delims=\ tokens=2-4" %%a in ("%CD%") do if "%%a\%%b\%%c" == "ext\app\jrtext" set JAVA_SRC_ROOT=\sf\app\jrt
    33 if not "%JAVA_SRC_ROOT%" == "" goto :resolved
    34 if not "%JAVA_SRC_ROOT%" == "" goto :resolved