-
Couldn't load subscription status.
- Fork 45
Description
Expected behavior
As a IDEasy user, I want to work with my devonfw-ide project or upgrade-settings to IDEasy so that it works like with devonfw-ide and I do not have to worry about incompatibilities.
Actual behavior
Invalid repository configuration xyz.properties - both 'path' and 'git-url' have to be defined.
Steps to reproduce (bug) / Use Case of feature request (enhancement)
ide create myproject «url-of-devonfw-ide-settings-project-with-active-project-repository»
Related/Dependent Issues
Implemented like this:
| properties.getProperty("workspace"), properties.getProperty("git_url"), properties.getProperty("git_branch"), |
Correctly as documented in devonfw-ide and doc was linked from the story.
Bute there is something I missed:
https://github.com/devonfw/ide/blob/8698d2ba7468d34aec82c86fabdb09b5ee84d9c8/scripts/src/main/resources/scripts/functions-core#L41
When devonfw-ide started, a dot was used as separator (git.url).
Later properties were loaded into bash variables and those variables cannot have a dot in the name.
So we replaced the dot with an underscore.
All projects that started earlier were using git.url and git.branch instead of git_url and git_branch.
See here as a proof:
https://github.com/devonfw/ide-settings/blob/4214b9dca2b3d5efdcbf8e60cb62617cc90f2f9f/projects/devon4j.properties
Comments/Hints:
- We need to add compatibility support in
RepositoryConfigto fallback to the property names with dots. - We IMHO should improve #759: upgrade settings commandlet #820 to migrate these properties from dot to underscores, since this is the officially specified format according to our documentation.
Affected version:
- 2024.12.002-beta
Metadata
Metadata
Assignees
Labels
Type
Projects
Status