jbonofre opened a new pull request, #2724:
URL: https://github.com/apache/karaf/pull/2724

   Backport of #2682 from `karaf-4.4.x` to `main`.
   
   ## Summary
   - Extends `bundle:dynamic-import` command with an explicit package list and 
`--enable`/`--disable` options
   - Replaces `enableDynamicImports(Bundle)` / `disableDynamicImports(Bundle)` 
on `BundleService` with a unified `setDynamicImports(Bundle, List<String>)`
   - Cherry-picked `cc1824c7d9` cleanly (one auto-merge in 
`BundleServiceImpl.java`)
   
   ## Test plan
   - [ ] `mvn -pl bundle/core clean install` passes
   - [ ] `bundle:dynamic-import <id>` toggles dynamic imports (existing 
behavior)
   - [ ] `bundle:dynamic-import <id> --enable` / `--disable` set the state 
explicitly
   - [ ] `bundle:dynamic-import <id> pkg.a pkg.b` enables dynamic imports 
limited to the given packages
   - [ ] Combining `--enable` with `--disable`, or options with a package list, 
fails with `IllegalArgumentException`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to