Skip to content
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

Property placeholder conflict in groovy #173

Closed
nicolaferraro opened this issue Oct 10, 2018 · 5 comments
Closed

Property placeholder conflict in groovy #173

nicolaferraro opened this issue Oct 10, 2018 · 5 comments
Labels
kind/bug Something isn't working

Comments

@nicolaferraro
Copy link
Member

Looks like simple language e.g. .transform().simple("aaa ${body}") conflicts with property resolution when using groovy.

@nicolaferraro nicolaferraro added the kind/bug Something isn't working label Oct 10, 2018
@lburgazzoli
Copy link
Contributor

You should use plain strings '' as "" is a GString and every value with ${} or $ is interpolated:

.transform().simple('aaa ${body}')

@nicolaferraro
Copy link
Member Author

Yes, I figured out it later.. but better to have this explanation here for the future..

@davsclaus
Copy link
Contributor

Also you can use $simple{body} style in Camel

@nicolaferraro
Copy link
Member Author

I think it's not working.. that was one of my tests, it complains on the simple variable missing..

@davsclaus
Copy link
Contributor

Ah darn - bad James for creating both groovy and camel with that same syntax ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants