It is possible to set wrong model directory in Architect

When the model has directory structure like this:

SomeProject

  • model
    • SomeProject
    • Root
    • Security
  • l10n
  • .gitignore

The model path in OrigamSettings.config should be “…\SomeProject\model”.

But it is possible to set it to “…\SomeProject” which will allow the model to be loaded with no problem in Architect. When you change an entity in the SomeProject package and save changes a new file along with a banch of folders will be created:

SomeProject

  • model
    • SomeProject
    • Root
    • Security
  • l10n
  • .gitignore
  • SomeProject
    • DataEntity
      • SomeProject
        -someEntity.origam

So a check should be probably implemenetd to avoid this. Is it ok to check whether the sub folders in the model folder contain *.origamPackage files (that is they are package folders)?

I think it is OK to check for that condition. Cannot see what else we could do to avoid this problem. I also saw a project which was misconfigured like this so it definitely happens.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.