Ignore:
Timestamp:
2024-03-14T16:34:12+01:00 (16 months ago)
Author:
taylor.smock
Message:

StreetSide: Update to official API

This also moves the plugin to Java 21 (mostly for virtual threads), reformats the
code to match the JOSM standard (4 spaces), and fixes a bunch of lint issues.

Additionally, a lot of cruft from when this plugin was copied from Mapillary was
removed. That was largely related to image import, uploading, and login.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/MicrosoftStreetside/gradlew.bat

    r35779 r36228  
    1515@rem
    1616
    17 @if "%DEBUG%" == "" @echo off
     17@if "%DEBUG%"=="" @echo off
    1818@rem ##########################################################################
    1919@rem
     
    2626
    2727set DIRNAME=%~dp0
    28 if "%DIRNAME%" == "" set DIRNAME=.
     28if "%DIRNAME%"=="" set DIRNAME=.
     29@rem This is normally unused
    2930set APP_BASE_NAME=%~n0
    3031set APP_HOME=%DIRNAME%
     
    4142set JAVA_EXE=java.exe
    4243%JAVA_EXE% -version >NUL 2>&1
    43 if "%ERRORLEVEL%" == "0" goto execute
     44if %ERRORLEVEL% equ 0 goto execute
    4445
    45 echo.
    46 echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
    47 echo.
    48 echo Please set the JAVA_HOME variable in your environment to match the
    49 echo location of your Java installation.
     46echo. 1>&2
     47echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
     48echo. 1>&2
     49echo Please set the JAVA_HOME variable in your environment to match the 1>&2
     50echo location of your Java installation. 1>&2
    5051
    5152goto fail
     
    5758if exist "%JAVA_EXE%" goto execute
    5859
    59 echo.
    60 echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
    61 echo.
    62 echo Please set the JAVA_HOME variable in your environment to match the
    63 echo location of your Java installation.
     60echo. 1>&2
     61echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
     62echo. 1>&2
     63echo Please set the JAVA_HOME variable in your environment to match the 1>&2
     64echo location of your Java installation. 1>&2
    6465
    6566goto fail
     
    7677:end
    7778@rem End local scope for the variables with windows NT shell
    78 if "%ERRORLEVEL%"=="0" goto mainEnd
     79if %ERRORLEVEL% equ 0 goto mainEnd
    7980
    8081:fail
    8182rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
    8283rem the _cmd.exe /c_ return code!
    83 if  not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
    84 exit /b 1
     84set EXIT_CODE=%ERRORLEVEL%
     85if %EXIT_CODE% equ 0 set EXIT_CODE=1
     86if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
     87exit /b %EXIT_CODE%
    8588
    8689:mainEnd
Note: See TracChangeset for help on using the changeset viewer.