Details
Description
The Karaf client.bat will not send any commands to a Karaf instance when using all options.
.\bin\client.bat -a 8101 -h localhost -u karaf -p karaf osgi:list
Simply opens a console, but does not list the bundles.
The reason can be found near the bottom of the script:
:EXECUTE
if "%SHIFT%" == "true" SET ARGS=%2 %3 %4 %5 %6 %7 %8
if not "%SHIFT%" == "true" SET ARGS=%1 %2 %3 %4 %5 %6 %7 %8
Obviously the command "osgi:list" in ".\bin\client.bat -a 8101 -h localhost -u karaf -p karaf osgi:list" is argument no. 9 ![]()
I have no idea what the %SHIFT% variable is needed for, but if not needed I would remove the code above and change it to:
:EXECUTE
SET ARGS=%*
With that, it is possible to get a bundle list (and other Karaf console commands that require additional arguments).
Attachments
Issue Links
- is depended upon by
-
KARAF-828 Release Apache Karaf 2.2.3
-
- Closed
-