Support multiple attributes for merge:id #992
Labels
enhancement
New feature or request
intellij
IntelliJ IDE from Jet-Brains
merger
settings
ide-settings repo and replated processes and features
We need support to specify multiple attributes in
merge:id
for the XML merger.In IntelliJ we have a a problem with the template
workspace.xml
:The problem comes from here:
https://github.com/devonfw/ide-settings/blob/ace6919d489a621460f9ef38440e189f02051cbc/intellij/workspace/update/.idea/workspace.xml#L32
The problem here is that IntelliJ saves all launch configurations and lots of other aspects in this
workspace.xml
.If you have more of them the merger will cause the exception above.
We could change
merge:id
to@type
but then it will still fail once I had run some regular JUnits.We could also change
merge:id
to@default
but when I add a default launch configuration for Java applications or other stuff, it will still not be unique.So in the end we can only uniquely identify this with the combination
[@default='true' AND @type='JUnit']
.The good news is that our XML merger already allows to define custom XPath expressions so we have a workaround and quickfix for this.
However, for simplicity of configuration, it would be great, if I could just type
merge:id="@default,@type"
and this would automatically build the according XPath from my values avoiding redundancy and making my template simpler and more readable.There could even be a shortcut
merge:id="@@"
to automatically add all attributes to the XPath, what would also work in this case.The text was updated successfully, but these errors were encountered: