CAMEL-23150: Add camel wrapper command for version pinning#21978
CAMEL-23150: Add camel wrapper command for version pinning#21978
Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
.../camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/WrapperCommand.java
Outdated
Show resolved
Hide resolved
...el-jbang-core/src/test/java/org/apache/camel/dsl/jbang/core/commands/WrapperCommandTest.java
Show resolved
Hide resolved
|
Tests are lightweight (file I/O only, no Camel context startup), each executing in milliseconds (~1.2s total for all 7 tests). Separate methods are preferred to test each aspect independently, but happy to consolidate if you feel strongly about it. |
nono, that is great, thanks |
Summary
camel wrappercommand that installs wrapper scripts (camelw/camelw.cmd) and a.camel/camel-wrapper.propertiesfile for pinning a specific Camel version to a project directorycamel-launcherJAR on first use and run it, similar to how Maven Wrapper (mvnw) works--camel-versionto specify the version (defaults to current) and--repo-urlto specify a custom Maven repositoryTest plan
WrapperCommandcovering file creation, properties content, default version, custom repo URL, and script contentcamel wrapperand verifycamelw/camelw.cmd/.camel/camel-wrapper.propertiesare created./camelw version getto verify the wrapper downloads and runs the launcher