davsclaus opened a new pull request, #23625: URL: https://github.com/apache/camel/pull/23625
## Summary - Download all GitHub example files to a local temp directory before running, instead of using `github:` scheme URLs at runtime. This follows the same pattern as bundled examples (`extractBundledExample`), making GitHub examples run reliably as local files. - Also fix `github:` and `gist:` scheme properties files being incorrectly wrapped with `file://` prefix in the general `camel run <github-url>` path. **Root cause:** `runGithubExample` was passing `github:` scheme URLs as file references. The properties component's `FilePropertiesSource` tried to resolve these as local file paths, causing `FileNotFoundException`. **Fix:** Use the example catalog's `files` list to download each file from `raw.githubusercontent.com` to a temp directory, set `exportBaseDir` to that directory (so `application.properties` auto-detection works), and add files as local paths. ## Test plan - [x] `camel run --example sql` — works (was failing with `FileNotFoundException`) - [ ] `camel run --example timer-log` — bundled example still works - [ ] `camel run --example mqtt` — GitHub example with nested files (`infra/mosquitto.conf`) _Claude Code on behalf of Claus Ibsen_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
