You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by gn...@apache.org on 2026/03/27 08:46:00 UTC

(camel) branch fix/docs-gulp-race-condition created (now 30fbc2302d0d)

This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a change to branch fix/docs-gulp-race-condition
in repository https://gitbox.apache.org/repos/asf/camel.git


      at 30fbc2302d0d Fix docs gulp race condition with dsl target directories

This branch includes the following new commits:

     new 30fbc2302d0d Fix docs gulp race condition with dsl target directories

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(camel) 01/01: Fix docs gulp race condition with dsl target directories

Posted by gn...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gnodet pushed a commit to branch fix/docs-gulp-race-condition
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 30fbc2302d0d24fd443a11bf864ee3e47d872b25
Author: Guillaume Nodet <gn...@gmail.com>
AuthorDate: Fri Mar 27 09:45:42 2026 +0100

    Fix docs gulp race condition with dsl target directories
    
    The gulpfile.js glob pattern '../dsl/**/src/main/docs/...' uses **
    which recurses into target/ directories created by concurrent builds.
    When a test process deletes target/surefire while gulp is scanning,
    it causes an ENOENT error that fails the docs build.
    
    Fix by replacing ** with explicit depth patterns:
    - dsl/src/main/docs/... for depth-0 (dsl.adoc)
    - dsl/{*,*/!(target)}/src/main/docs/... for depth 1-2, excluding
      target directories via extglob
    
    Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
---
 docs/gulpfile.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/gulpfile.js b/docs/gulpfile.js
index 39d7dc056961..9880997246ff 100644
--- a/docs/gulpfile.js
+++ b/docs/gulpfile.js
@@ -206,7 +206,8 @@ const sources = {
         '../core/camel-base/src/main/docs/!(*-component|*-language|*-dataformat|*-summary).adoc',
         '../core/camel-main/src/main/docs/!(*-component|*-language|*-dataformat|*-summary).adoc',
         '../components/{*,*/*}/src/main/docs/!(*-component|*-language|*-dataformat|*-summary).adoc',
-        '../dsl/**/src/main/docs/!(*-component|*-language|*-dataformat|*-summary).adoc',
+        '../dsl/src/main/docs/!(*-component|*-language|*-dataformat|*-summary).adoc',
+        '../dsl/{*,*/!(target)}/src/main/docs/!(*-component|*-language|*-dataformat|*-summary).adoc',
       ],
       destination: 'components/modules/others/pages',
       keep: [