Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions camel-jbang-example-catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@
"inbox",
"archive"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -560,7 +560,7 @@
"rest",
"client"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -606,7 +606,7 @@
"http",
"platform-http"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -691,7 +691,7 @@
"client",
"contract"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -741,7 +741,7 @@
"rest",
"contract"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -823,7 +823,7 @@
"retry",
"dead-letter"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -991,7 +991,7 @@
"aggregator",
"batch"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1031,7 +1031,7 @@
"choice",
"routing"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1073,7 +1073,7 @@
"filter",
"multicast"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1114,7 +1114,7 @@
"splitter",
"split"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1149,7 +1149,7 @@
"cron",
"schedule"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1184,7 +1184,7 @@
"bean",
"json"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1219,7 +1219,7 @@
"profiles",
"configuration"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1411,7 +1411,7 @@
"file",
"transformation"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1452,7 +1452,7 @@
"json",
"transformation"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1493,7 +1493,7 @@
"validation",
"dependencies"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1534,7 +1534,7 @@
"jsonpath",
"transformation"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1571,7 +1571,7 @@
"jackson",
"transformation"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down Expand Up @@ -1603,7 +1603,7 @@
"xslt",
"transformation"
],
"bundled": false,
"bundled": true,
"requiresDocker": false,
"hasCitrusTests": true,
"files": [
Expand Down
2 changes: 1 addition & 1 deletion connect/file-processing/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
"inbox",
"archive"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion connect/http-client/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
"rest",
"client"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion connect/stock-api/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@
"http",
"platform-http"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion contracts/openapi-client/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
"client",
"contract"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion contracts/openapi-server/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@
"rest",
"contract"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion fail-well/error-handling/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
"retry",
"dead-letter"
],
"bundled": false
"bundled": true
}
12 changes: 11 additions & 1 deletion generate-catalog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ CATALOG_FILE="$SCRIPT_DIR/camel-jbang-example-catalog.json"
python3 - "$SCRIPT_DIR" "$CATALOG_FILE" << 'PYEOF'
import json
import os
import subprocess
import sys

repo_root = sys.argv[1]
Expand All @@ -45,6 +46,14 @@ SKIP_EXTENSIONS = {
".excalidraw", ".iml"
}

# the files git ignores (what an example writes when run locally, such as parked/ or inbox/) are no example files
try:
ignored = set(subprocess.run(
["git", "ls-files", "--others", "--ignored", "--exclude-standard"],
cwd=repo_root, capture_output=True, text=True, check=True).stdout.splitlines())
except (OSError, subprocess.CalledProcessError):
ignored = set()

catalog = []

for dirpath, dirnames, filenames in sorted(os.walk(repo_root)):
Expand Down Expand Up @@ -82,7 +91,8 @@ for dirpath, dirnames, filenames in sorted(os.walk(repo_root)):
and not f.startswith(".")
and os.path.splitext(f)[1].lower() not in SKIP_EXTENSIONS):
rel = os.path.relpath(os.path.join(sub_dirpath, f), dirpath)
files.append(rel)
if os.path.relpath(os.path.join(sub_dirpath, f), repo_root) not in ignored:
files.append(rel)
files.sort()

requires_docker = ("compose.yaml" in filenames or "docker-compose.yaml" in filenames
Expand Down
2 changes: 1 addition & 1 deletion route/aggregator/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"aggregator",
"batch"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion route/content-based-router/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
"choice",
"routing"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion route/filter-and-multicast/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
"filter",
"multicast"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion route/order-lines/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
"splitter",
"split"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion run/nightly-report/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@
"cron",
"schedule"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion run/order-generator/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"bean",
"json"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion run/properties-and-profiles/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@
"profiles",
"configuration"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion transform/csv-to-json/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"file",
"transformation"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion transform/data-mapping/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@
"json",
"transformation"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion transform/groovy/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
"validation",
"dependencies"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion transform/json-transform/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@
"jsonpath",
"transformation"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion transform/xml-to-json/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"jackson",
"transformation"
],
"bundled": false
"bundled": true
}
2 changes: 1 addition & 1 deletion transform/xslt/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@
"xslt",
"transformation"
],
"bundled": false
"bundled": true
}
Loading