New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CAMEL-19313: resolve option placeholder #9987
Conversation
🚫 There are (likely) no components to be tested in this PR |
return doCall(); | ||
} | ||
|
||
private void replacePlaceholders() throws Exception { | ||
for (CommandLine.Model.ArgSpec argSpec : spec.args()) { | ||
String defaultValue = spec.defaultValueProvider().defaultValue(argSpec); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the default values are the values set in configuration? (like when set with jbang camel@apache/camel config set repos=https://maven.repository.redhat.com/ga
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exactly, the defaultValueProvider()
loads the value from the properties file (updated via camel config set
)
Can you maybe also add a little part in the camel-jbang doc about this |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- tested locally manually with Camel Main
- the notation used for the placeholder is $name, so for instance --repos=$repos,https://another.repo
- agree that it would be nice to mention it in the documentation but I guess it can also be done in another Pull request
- I linked the issue https://issues.apache.org/jira/browse/CAMEL-19313 to the issue about writing the integration tests for Camel JBang https://issues.apache.org/jira/browse/CAMEL-19338
- @Croway launched the current integration tests of this branch and no regression were detected
Thanks @apupier for checking it, I have added some doc too. |
🚫 There are (likely) no components to be tested in this PR |
This is a draft PR is it ready to be merged or do you need more work? |
Description
Target
camel-3.x
, whereas Camel 4 uses themain
branch)Tracking
Apache Camel coding standards and style
mvn -Pformat,fastinstall install && mvn -Psourcecheck