Skip to content

Create migration script to switch from mirrors to urls #1087

@hohwille

Description

@hohwille

For epic #941 we also need to adapt the devonfw-ide scripts itself such that it uses ide-urls instead of ide-mirrors.
This story is about writing the migration script (see #971) for the upcoming release 2023.04.001 with the following aspects:

  • delete the mirrors folder.
  • clone the ide-urlsrepository into folder urls.
  • adapt devon.properties from the legacy config to the new one as discussed in the epic New approach for ide-mirrors #941, etc. Details are given below.

For the replacements in devon.properties use the following rules:

  • Variable INTELLIJ_EDITION_TYPE has to be renamed to INTELLIJ_EDITION.
  • Variable ECLIPSE_EDITION_TYPE has to be renamed to ECLIPSE_EDITION.
  • Variable MAVEN_VERSION has to be renamed to MVN_VERSION.
  • Variable SONARQUBE_VERSION has to be renamed to SONAR_VERSION.
  • Value of intellij edition C has to be changed to intellij (default edition is community edition).
  • Value of intellij edition U has to be changed to ultimate.
  • Value of eclipse edition java has to be changed to eclipse (default edition is java edition).
  • Value of docker edition has to be set to docker in case it is DOCKERDESKTOP or docker and in any other case to rancher.

The above replacements shall happen in all affected devon.properties (see configuration to get the list of them but you can ignore 8.). In case a replacement is happening in ~/devon.properties you should raise a end-user message with confirmation that he needs to update all his devonfw-ide installations to the new version to avoid breaking changes.

Please also update the edition documentation in the following places:

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions