Skip to content

#1870: Add generic get-version implementation for global tools under windows - #2244

Merged
hohwille merged 46 commits into
devonfw:mainfrom
vivu001:feature/#1870-generic-get-version-implementation-global-tools-windows
Aug 10, 2026
Merged

#1870: Add generic get-version implementation for global tools under windows#2244
hohwille merged 46 commits into
devonfw:mainfrom
vivu001:feature/#1870-generic-get-version-implementation-global-tools-windows

Conversation

@vivu001

@vivu001 vivu001 commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

This PR fixes #1870

This PR is a renewal of the previous PR #1896.

Implemented changes:

  • Add logic in getInstalledVersion() of GlobalToolCommandlet to look up tool in Windows registry.
  • Override getWindowsRegistryAppName() in Docker and PgAdmin so Windows registry lookup uses the correct app names.

Checklist for this PR

Make sure everything is checked before merging this PR. For further info please also see
our DoD.

  • When running mvn clean test locally all tests pass and build is successful
  • PR title is of the form #«issue-id»: «brief summary» (e.g. #921: fixed setup.bat). If no issue ID exists, title only.
  • PR top-level comment summarizes what has been done and contains link to addressed issue(s)
  • PR and issue(s) have suitable labels
  • Issue is set to In Progress and assigned to you or there is no issue (might happen for very small PRs)
  • You followed all coding conventions
  • You have added the issue implemented by your PR in CHANGELOG.adoc unless issue is labeled
    with internal

jakozian and others added 30 commits April 28, 2026 09:09
Co-authored-by: MarvMa <marvin.meitzner@gmail.com>
…-tool' of https://github.com/jakozian/IDEasy into feature/devonfw#1870-generic-get-version-implementation-global-tools-windows
…tarts' of https://github.com/jakozian/IDEasy into feature/devonfw#1870-generic-get-version-implementation-global-tools-windows

# Conflicts:
#	CHANGELOG.adoc
…indows-registry' of https://github.com/jakozian/IDEasy into feature/devonfw#1870-generic-get-version-implementation-global-tools-windows
…indows-registry' into feature/devonfw#1870-generic-get-version-implementation-global-tools-windows
…indows-registry' of https://github.com/jakozian/IDEasy into feature/devonfw#1870-generic-get-version-implementation-global-tools-windows
@vivu001 vivu001 added the commandlet ide sub-command label Aug 3, 2026
@vivu001 vivu001 self-assigned this Aug 3, 2026
@vivu001 vivu001 moved this from 🆕 New to 🏗 In progress in IDEasy board Aug 3, 2026
@vivu001
vivu001 marked this pull request as ready for review August 3, 2026 13:23
@vivu001 vivu001 moved this from 🏗 In progress to Team Review in IDEasy board Aug 3, 2026
@MeShehi MeShehi self-assigned this Aug 4, 2026
@MeShehi

MeShehi commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

The PR correctly implements getInstalledVersion using the WindowsHelper interface. However, it looks like there are some merge conflicts, so I would move this to Reviews once those have been resolved

@hohwille hohwille moved this from Team Review to 👀 In review in IDEasy board Aug 4, 2026

@cap-juan cap-juan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Just a minor detail to be taken into account for the registry namings.

Comment thread cli/src/main/java/com/devonfw/tools/ide/tool/docker/Docker.java
Comment thread cli/src/main/java/com/devonfw/tools/ide/tool/pgadmin/PgAdmin.java Outdated
@hohwille hohwille added this to the release:2026.08.001 milestone Aug 6, 2026
@vivu001 vivu001 moved this from 👀 In review to Team Review in IDEasy board Aug 6, 2026
vivu001 added 2 commits August 6, 2026 14:41
Use the shared Windows registry lookup path for Docker Desktop and remove the hardcoded getDockerDesktopVersionWindows() method

@cap-juan cap-juan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the good job.

@cap-juan cap-juan moved this from Team Review to 👀 In review in IDEasy board Aug 7, 2026
Comment thread cli/src/main/java/com/devonfw/tools/ide/tool/pgadmin/PgAdmin.java Outdated

@hohwille hohwille left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vivu001 thanks for your PR. Great improvement to our long neglected global tool infrastructure including JUnit. 👍
Ready for merge.

@hohwille
hohwille merged commit aab2812 into devonfw:main Aug 10, 2026
4 checks passed
@github-project-automation github-project-automation Bot moved this from 👀 In review to ✅ Done in IDEasy board Aug 10, 2026
@hohwille

Copy link
Copy Markdown
Member

For Rancher Desktop it was working with the current Snapshot, for pgadmin it does not work (reports * as version even after fresh installation of PgAdmin triggered via IDEasy and manually completed the installer).

@hohwille hohwille added the QA approved Label a PR that has been re-testet via nightly SNAPSHOT after merge and commented. label Aug 11, 2026
@hohwille

Copy link
Copy Markdown
Member

Seems no other retest was done.
IMHO we have to file new bug for PgAdmin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commandlet ide sub-command QA approved Label a PR that has been re-testet via nightly SNAPSHOT after merge and commented. windows specific for Microsoft Windows OS

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Implement generic get-version implementation for global tools under windows

7 participants