[ https://issues.apache.org/jira/browse/CAMEL-22360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18015428#comment-18015428 ]
Cameron Fitzwater commented on CAMEL-22360: ------------------------------------------- I believe the crux of the issue here (which was also true with camel k), is that there isn't a a way to define some of the cli arguments via code/properties. For instance, if a camel.jbang property existed for accepting source directories or files, the request may not have been necessary (though still valuable). _It would be ideal if *ALL* cli arguments were able to be defined this way, and then, if arguments were provided on the cli, they would act as overrides._ As a temporary workaround to this, I'll be creating a .camel-sources file that will reference all the locations, and then let CI pipe it into the export command. This way it can be semi-dynamically generated across varying integrations, as well as stay standardized in the pipeline. > camel jbang add recursive flag > ------------------------------ > > Key: CAMEL-22360 > URL: https://issues.apache.org/jira/browse/CAMEL-22360 > Project: Camel > Issue Type: New Feature > Components: camel-jbang > Reporter: Cameron Fitzwater > Priority: Minor > > *Request:* > Add {{--recursive}} flag to {{camel run}} and {{camel export}} commands for > subdirectory file discovery. > > *Problem:* > Currently, {{camel run *}} and {{camel export *}} commands only discover > files at the base level of the current (or specified) directory and do not > recursively search subdirectories. > This limitation: > # *Prevents CI/CD standardization* - Requires project-specific build > commands instead of a standardized approach > # *Restricts project structure flexibility* - Forces all integration files > to be in a single directory if trying to standardize the CI > > *Expected behavior with {{{}--recursive{}}}:* > project/ > ├── main.yaml # ✅ Found > ├── routes/ > │ ├── dispatch-routes.yaml # ✅ Found with --recursive > │ └── market-routes.yaml # ✅ Found with --recursive > ├── shared/ > │ └── common-routes.yaml # ✅ Found with --recursive > └── src/ > └── main/ > └── java/ > └── handlers/ > └── MyHandler.java # ✅ Found with --recursive -- This message was sent by Atlassian Jira (v8.20.10#820010)