Oh and BTW, the PROGNAME is not used in the Windows (.bat) case, it uses
hardcoded start.bat/karaf.bat names instead:

https://github.com/apache/karaf/blob/25b1a00ab6b2330a469c244c4abc1389aaad5313/assemblies/features/base/src/main/filtered-resources/resources/bin/start.bat#L29

> set PROGNAME=%~nx0%
> ...
> rem Sourcing environment settings for karaf similar to tomcats setenv
> if "%KARAF_SCRIPT%" == "" (
> SET KARAF_SCRIPT="start.bat"
> )
> if exist "%DIRNAME%setenv.bat" (
> call "%DIRNAME%setenv.bat"
> )


Gruss
Bernd

Reply via email to