#1976: extend tool commandlet installation logic - #2144
Conversation
|
Nice work on this 👍 The |
Coverage Report for CI Build 30836475917Coverage increased (+0.01%) to 72.628%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions92 previously-covered lines in 5 files lost coverage.
Coverage Stats💛 - Coveralls |
ef6bdfb to
c156c92
Compare
|
Thanks for the fast turnaround 🙌 All five points are addressed the One small open question, no blocker: should |
|
Thanks for checking. Version-only is intended for this issue, so the configured edition should remain unchanged. |
There was a problem hiding this comment.
@Caylipp thanks for your PR. Nice solution and good job 👍
I was actually looking for the place where tool dependencies get processed and wanted to check that you did not forget to set the flag from the parent request but you nicely solved that already in the ToolInstallRequest constructor what is more elegant so it is automatically inherited but could still be changed after construction in an edge-case. Very nice!
I did not expect that we expose this feature via the CLI to end-users. Have a look at my comments and lets see if we should revet this making this PR quite smaller or if we see value in it and should keep it.
BTW: While reviewing the Gui commandlet again via this PR, I was wondering, why we have to trigger installation of both java and mvn explicitly there even though mvn has a dependency to java. If I am not mistaken, we could now remove that (the redundant java installation) and before that was only a workaround because this story was not implemented.
Feel free to consult @laim2003 - in case we still need this redundant dependent java installation explicitly, it would be worth adding a comment why we need it.
d7e3443 to
57128bd
Compare
-add ToolInstallRequest ignoreProject support -skip project symlinks when ignoring project -update dependency installation to ignore project version -add CLI --ignore-project flag - update GUI launcher dependencies -add tests for ignore project flag
- Handle unset ignoreproject flag safely - Skip configured project version when project is ignored
- Register ignore-project as CLI flag - Align English and German help entries - Ignore configured version for standalone installs - Add CLI parser and installation tests
…andlet.java Co-authored-by: quando632 <quang-hieu.do@capgemini.com>
…andletTest.java Co-authored-by: quando632 <quang-hieu.do@capgemini.com>
…andlet.java Co-authored-by: quando632 <quang-hieu.do@capgemini.com>
fdbb346 to
75b162c
Compare
Co-authored-by: quando632 <quang-hieu.do@capgemini.com> Co-authored-by: Jörg Hohwiller <hohwille@users.noreply.github.com>
This PR fixes #1976
Implemented changes:
ignoreProjectsupport toToolInstallRequest--ignore-projecttoInstallCommandletTesting instructions
ide install java --ignore-projectinside an IDEasy project and verify Java is installed in thesoftware repository without creating a symlink under
software/java.ide install java --ignore-projectoutside any project and verify the tool is installed in thesoftware repository.
Checklist for this PR
Make sure everything is checked before merging this PR. For further info please also see
our DoD.
mvn clean testlocally all tests pass and build is successful#«issue-id»: «brief summary»(e.g.#921: fixed setup.bat). If no issue ID exists, title only.In Progressand assigned to you or there is no issue (might happen for very small PRs)with
internal