Skip to content

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

Open
vivu001 wants to merge 42 commits into
devonfw:mainfrom
vivu001:feature/#1870-generic-get-version-implementation-global-tools-windows
Open

#1870: Add generic get-version implementation for global tools under windows#2244
vivu001 wants to merge 42 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
jakozian and others added 8 commits May 7, 2026 13:45
…generic-get-version-implementation-global-tools-windows

# Conflicts:
#	CHANGELOG.adoc
…generic-get-version-implementation-global-tools-windows

# Conflicts:
#	CHANGELOG.adoc
…lementation-global-tools-windows

# Conflicts:
#	CHANGELOG.adoc
@coveralls

coveralls commented Jul 31, 2026

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 30883639185

Coverage increased (+0.01%) to 72.6%

Details

  • Coverage increased (+0.01%) from the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • 40 coverage regressions across 4 files.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

40 previously-covered lines in 4 files lost coverage.

File Lines Losing Coverage Coverage
com/devonfw/tools/ide/tool/GlobalToolCommandlet.java 37 8.76%
com/devonfw/tools/ide/tool/docker/Docker.java 1 5.95%
com/devonfw/tools/ide/tool/pgadmin/PgAdmin.java 1 4.65%
com/devonfw/tools/ide/version/VersionSegment.java 1 90.55%

Coverage Stats

Coverage Status
Relevant Lines: 17259
Covered Lines: 13072
Line Coverage: 75.74%
Relevant Branches: 7653
Covered Branches: 5014
Branch Coverage: 65.52%
Branches in Coverage %: Yes
Coverage Strength: 3.22 hits per line

💛 - Coveralls

@vivu001 vivu001 changed the title #1870: Add generic get-version implementation for global tools under windows- #1896 #1870: Add generic get-version implementation for global tools under windows Aug 3, 2026
@vivu001 vivu001 added windows specific for Microsoft Windows OS commandlet ide sub-command labels 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commandlet ide sub-command windows specific for Microsoft Windows OS

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

Implement generic get-version implementation for global tools under windows

6 participants