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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-jbang-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new 191683e  CAMEL-25670: the examples that write files into their own 
folder declare it as data (#113)
191683e is described below

commit 191683ecde586f9369c64fe44765cde7852ca26c
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Oct 14 21:16:12 2026 +0200

    CAMEL-25670: the examples that write files into their own folder declare it 
as data (#113)
    
    With camel run --source-dir in dev mode, every file under the folder is 
watched, so a route that writes into a folder
    of the example (an inbox, an outbox, an archive) reloaded the routes on 
every write, endlessly. camel.jbang.dataDir
    (apache/camel#27847, Camel 4.24) leaves those folders out of the reload:
    
    - connect/file-processing: samples,inbox,archive
    - fail-well/error-handling: orders,parked
    - transform/csv-to-json: inbox,outbox
    - connect-service/camel-1-tribute: outbox
    - ai/docling-langchain4j-rag: documents,output
    - security/pqc-secure-file-transfer: input,encrypted,decrypted
    
    The other examples that use the file component only read their files 
(noop=true).
    
    
    Claude-Session: https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m
    
    Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
---
 ai/docling-langchain4j-rag/application.properties        | 4 ++++
 connect-service/camel-1-tribute/application.properties   | 4 ++++
 connect/file-processing/application.properties           | 4 ++++
 fail-well/error-handling/application.properties          | 4 ++++
 security/pqc-secure-file-transfer/application.properties | 4 ++++
 transform/csv-to-json/application.properties             | 4 ++++
 6 files changed, 24 insertions(+)

diff --git a/ai/docling-langchain4j-rag/application.properties 
b/ai/docling-langchain4j-rag/application.properties
index 9aa31ec..4507026 100644
--- a/ai/docling-langchain4j-rag/application.properties
+++ b/ai/docling-langchain4j-rag/application.properties
@@ -38,3 +38,7 @@ batch.period=3600000
 
 # HTTP Server Configuration
 camel.server.port=8080
+
+# the folders the routes read and write hold data, not sources: with camel run 
--source-dir in dev mode,
+# a change in them does not reload the routes
+camel.jbang.dataDir=documents,output
diff --git a/connect-service/camel-1-tribute/application.properties 
b/connect-service/camel-1-tribute/application.properties
index 008ce7f..1cadf84 100644
--- a/connect-service/camel-1-tribute/application.properties
+++ b/connect-service/camel-1-tribute/application.properties
@@ -4,3 +4,7 @@ camel.beans.artemisCF.brokerURL = tcp://localhost:61616
 camel.beans.artemisCF.user = artemis
 camel.beans.artemisCF.password = artemis
 camel.component.jms.connection-factory = #bean:artemisCF
+
+# the folders the routes read and write hold data, not sources: with camel run 
--source-dir in dev mode,
+# a change in them does not reload the routes
+camel.jbang.dataDir=outbox
diff --git a/connect/file-processing/application.properties 
b/connect/file-processing/application.properties
index 13a8339..60bdc8a 100644
--- a/connect/file-processing/application.properties
+++ b/connect/file-processing/application.properties
@@ -14,3 +14,7 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
+
+# the folders the routes read and write hold data, not sources: with camel run 
--source-dir in dev mode,
+# a change in them does not reload the routes
+camel.jbang.dataDir=samples,inbox,archive
diff --git a/fail-well/error-handling/application.properties 
b/fail-well/error-handling/application.properties
index 13a8339..7121aa7 100644
--- a/fail-well/error-handling/application.properties
+++ b/fail-well/error-handling/application.properties
@@ -14,3 +14,7 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
+
+# the folders the routes read and write hold data, not sources: with camel run 
--source-dir in dev mode,
+# a change in them does not reload the routes
+camel.jbang.dataDir=orders,parked
diff --git a/security/pqc-secure-file-transfer/application.properties 
b/security/pqc-secure-file-transfer/application.properties
index f6e5c65..ecb75cd 100644
--- a/security/pqc-secure-file-transfer/application.properties
+++ b/security/pqc-secure-file-transfer/application.properties
@@ -25,3 +25,7 @@ decrypted.directory=decrypted
 
 # HTTP Server Configuration
 camel.server.port=8080
+
+# the folders the routes read and write hold data, not sources: with camel run 
--source-dir in dev mode,
+# a change in them does not reload the routes
+camel.jbang.dataDir=input,encrypted,decrypted
diff --git a/transform/csv-to-json/application.properties 
b/transform/csv-to-json/application.properties
index 13a8339..edab55a 100644
--- a/transform/csv-to-json/application.properties
+++ b/transform/csv-to-json/application.properties
@@ -14,3 +14,7 @@
 # KIND, either express or implied.  See the License for the
 # specific language governing permissions and limitations
 # under the License.
+
+# the folders the routes read and write hold data, not sources: with camel run 
--source-dir in dev mode,
+# a change in them does not reload the routes
+camel.jbang.dataDir=inbox,outbox

Reply via email to