gnodet opened a new pull request, #29148:
URL: https://github.com/apache/camel/pull/29148
## Summary
Fixes the `4.18.x` docs build failing with `ENOENT: no such file or
directory` during the `symlink:json:others` Gulp task.
## Root Cause
The backport of CAMEL-25886 added
`SftpConsumerJailStartingDirectorySymlinkIT`, which creates dangling symbolic
links under `camel-ftp/target/ftp/...` during integration tests. The
`symlink:json:others` Gulp task uses the glob
`../components/{*,*/*,*/*/*}/src/generated/resources/*.json`, which traverses
into `target/` subdirectories during expansion. When the glob engine calls
`stat()` on a dangling symlink it encounters there, Node.js throws `ENOENT`,
crashing the build.
This issue only affects `camel-4.18.x` — the `docs/gulpfile.js` does not
exist on `main` or `camel-4.22.x`.
## Fix
Add `'!../components/**/target/**'` as a negative glob exclusion to the
`others/json` source array in `docs/gulpfile.js`. This tells Gulp's `glob` to
skip the `target/` directories entirely during traversal, avoiding any dangling
symlinks created by test infrastructure.
## Tests
No Java test change — this is a docs build tooling fix. The test that
creates the dangling symlinks (`SftpConsumerJailStartingDirectorySymlinkIT`)
remains unchanged; the fix ensures the docs build task no longer traverses into
`target/` where those symlinks live.
Fixes https://issues.apache.org/jira/browse/CAMEL-26497
_Hermes Agent (Claude Sonnet) on behalf of Guillaume Nodet_
--
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]