OpenNTF / org.openntf.nsfodp

Maven and Eclipse tooling for working with NSF on-disk-project representations
Apache License 2.0
14 stars 6 forks source link

Elements with same aliases are not imported correctly #288

Closed mpradny closed 2 years ago

mpradny commented 2 years ago

When elements have the same aliases, ODPCompiler result contains only one design element per alias. This is not that common in modern XPages apps, but for classic Notes web apps this is a standard way of programming.

I have eg.:

Result in NSF after build:

(The view configuration is probably not correct, but it works in Notes, so I mention it here too. )

I ran the build with a debugger and all dxl files/elements were processed, no error was reported by DXL importer. I suspect that it's related to DXLImporter flags as the help states

CAUTION:

If multiple elements share a name or alias, Replace_Else_Create and Replace_Else_Ignore will have unpredictable results. If there is at most one matching design element in the output database, whichever incoming element is the last one processed will replace all previously processed matching elements. If there are multiple matching design elements in the output database, there is no way to predict which one will be replaced. These options should only be used when there is at most one element with the same name or alias.