-
Notifications
You must be signed in to change notification settings - Fork 88
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
Accept default value in placeholders for unresolved property values #1
Conversation
If i correctly understand your code this will handle all the time the default values...I would say to add a flag which controls this behaviour and don't make it the default. Furthermore it would be nice having a documentation on the site with an example... |
Done. Thanks, |
This is a really cool feature! I vote for it. Just one note: In my opinion,
What do you think? |
Sounds nice. Any news on this? |
Avoid class cast exception
Can this be revisited? |
This would be incredibly useful. Perhaps one of the project maintainers could advise what's necessary to be able to merge this in and start using it? I'd rather not have to maintain a fork of this plugin for something which ought to be common usage! |
hi guys, how about this, i'm still waiting for it :D |
Me too, still waiting for it -( |
bump |
2022 and still waiting... |
well after all this time there had to be a few conflicts :) |
Hmmm. I actually wanted this behaviour for vanilla |
resolved some more conflicts with the base branch 🔀 |
@diamondT thanks for PR and for patience |
better late than never :) |
* Migrate changes to plugin from upstream. Fixes mojohaus#1 This is the change set for the new fork. * Add run-its to release process * Add mojorelease to release process
Hi,
Here is a patch for accepting default values when a property key is not resolved.
Default value (if present) will be returned if all other resolution attempts fail (i.e. properties -> system properties -> env variable -> default value).
A few examples:
Given these initial values
the following replacements will happen
Let me know what you think.
Thanks,