You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to update a property <main.groupId>com.example.ws4</main.groupId> from ws4 to ws5. However, we have like 200 repositories (90% maven), and I don't know for certain what the property name is in each. But I know the value.
So I would like to search the properties based on the value, and if encountered: change it to the new value.
What precondition(s) should be checked before applying this recipe?
none that I can think of
Describe the situation before applying the recipe
<main.groupId>com.example.ws4</main.groupId>
Describe the situation after applying the recipe
<main.groupId>com.example.ws5</main.groupId>
Have you considered any alternatives or workarounds?
org.openrewrite.xml.ChangeTagValue can be used, but I feel it's not so clean. Especially because values in properties can still contain properties that needs to be interpreted.
What problem are you trying to solve?
I want to update a property
<main.groupId>com.example.ws4</main.groupId>
fromws4
tows5
. However, we have like 200 repositories (90% maven), and I don't know for certain what the property name is in each. But I know the value.So I would like to search the properties based on the value, and if encountered: change it to the new value.
What precondition(s) should be checked before applying this recipe?
none that I can think of
Describe the situation before applying the recipe
Describe the situation after applying the recipe
Have you considered any alternatives or workarounds?
org.openrewrite.xml.ChangeTagValue
can be used, but I feel it's not so clean. Especially because values in properties can still contain properties that needs to be interpreted.Are you interested in contributing this recipe to OpenRewrite?
Maybe
The text was updated successfully, but these errors were encountered: