Skip to content

CapellaScope parses the comment in capella files to detect versions instead of using the afm #2985

Description

@Kellindil

During the resolution of #2982 we had tests freezing on the CI : they were prompting for migration because of the CapellaScope.checkCapellaVersion(Resource)).

CapellaScope looks for the <!--Capella_Version_7.0.0--> comment in the ".capella" files and parse it to find the major.minor.patch version.

This check for version compatibility is extremely brittle : it assumes the version number can only be 5 characters long, textually parses something in the .capella file, and does not work in debug mode.
CapellaScope.checkCapellaVersion(Resource) should be changed to use the code that is used everywhere else to check for migration requirement (org.polarsys.capella.core.af.integration.CapellaMetadataProvider).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions