davsclaus opened a new pull request, #24986: URL: https://github.com/apache/camel/pull/24986
## Summary - Add `--resource-dirs` option to `camel run`, `camel export`, and `camel kubernetes run/export` commands - Recursively copies specified directories into `src/main/resources` preserving the full directory structure - For `camel run`, adds files to classpath with their directory-relative paths preserved - For `camel export`, copies files into `src/main/resources/<dir>/...` preserving structure - For paths with `..` (e.g., `../shared/schemas`), uses only the last directory name as target (`schemas/`) - Rejects absolute paths for safety - Limits to 1000 files per directory to prevent accidental full filesystem traversal - Multiple directories supported via comma separation or repeated option Example: ``` camel export --resource-dirs=soap,wsdl ``` With `soap/schemas/common.xsd` produces `src/main/resources/soap/schemas/common.xsd`. ## Test plan - [x] New `ResourceDirsTest` with 9 tests covering: validation, recursive walking, max file limit, `..` path mapping, deep subdirectory structure - [x] All 854 existing camel-jbang-core tests pass - [x] All 128 existing camel-jbang-plugin-kubernetes tests pass _Claude Code on behalf of davsclaus_ -- 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]
