-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#439: refactor tool dependencies and tomcat #515
#439: refactor tool dependencies and tomcat #515
Conversation
…omcat # Conflicts: # cli/src/main/java/com/devonfw/tools/ide/tool/CustomToolCommandlet.java # cli/src/main/java/com/devonfw/tools/ide/tool/Dependency.java # cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java # cli/src/main/java/com/devonfw/tools/ide/tool/PluginBasedCommandlet.java # cli/src/main/java/com/devonfw/tools/ide/tool/androidstudio/AndroidStudio.java # cli/src/main/java/com/devonfw/tools/ide/tool/intellij/Intellij.java # cli/src/main/java/com/devonfw/tools/ide/tool/tomcat/Tomcat.java # cli/src/test/java/com/devonfw/tools/ide/tool/dotnet/DotNetTest.java # cli/src/test/java/com/devonfw/tools/ide/tool/intellij/IntellijTest.java # cli/src/test/java/com/devonfw/tools/ide/tool/tomcat/TomcatTest.java
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aBega2000 as requested I had a look at your PR. It looks already good to me and you are perfectly on the right track 👍
Your changes to use the model with UrlDependencyFile
are fully correct, and the way you integrate the environment variable settings is also looking good. I left some review comments for further directions and places to adopt. Please have a look.
cli/src/main/java/com/devonfw/tools/ide/commandlet/AbstractUpdateCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/CustomToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/tool/tomcat/TomcatTest.java
Outdated
Show resolved
Hide resolved
…omcat # Conflicts: # cli/src/main/java/com/devonfw/tools/ide/tool/CustomToolCommandlet.java # cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java # cli/src/test/java/com/devonfw/tools/ide/tool/cobigen/CobigenTest.java
Pull Request Test Coverage Report for Build 10577088575Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aBega2000 thanks for your patient work on this complex topic.
You have already gathered very great improvements in this PR and addressed most of the aspects of the story #439. 👍
I left some review comments for rework.
Please, have a look and consider some improvements.
You can also then take this PR out of draft mode.
IMHO we can approve if all review comments are addressed.
Feel free to get in touch if some review comments are unclear for you.
cli/src/main/java/com/devonfw/tools/ide/process/EnvironmentContext.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/CustomToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/LocalToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/ToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/ToolCommandlet.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The refactoring looks really nice, especially the runTool refactor. I've added quite some CR's for missing Javadocs only. Please check your IDE for yellow/orange hints on the right side of the code window to prevent this.
cli/src/main/java/com/devonfw/tools/ide/process/EnvironmentContext.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/url/model/file/UrlDependencyFile.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/url/model/folder/UrlEdition.java
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/tool/tomcat/TomcatTest.java
Outdated
Show resolved
Hide resolved
cli/src/test/java/com/devonfw/tools/ide/tool/tomcat/TomcatTest.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/ToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/ToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/ToolCommandlet.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/tool/ToolCommandlet.java
Outdated
Show resolved
Hide resolved
…ttps://github.com/aBega2000/IDEasy into feature/439-refactor-tool-dependencies-and-tomcat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small CR's missing and then it's ready to merge.
cli/src/main/java/com/devonfw/tools/ide/process/EnvironmentContext.java
Outdated
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/url/model/file/UrlDependencyFile.java
Show resolved
Hide resolved
cli/src/main/java/com/devonfw/tools/ide/url/model/file/UrlDependencyFile.java
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding the missing Javadocs. Ready for review.
…ttps://github.com/aBega2000/IDEasy into feature/439-refactor-tool-dependencies-and-tomcat
cli/src/main/java/com/devonfw/tools/ide/tool/ToolCommandlet.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aBega2000 thank you very much for your work and improvements. You are reaching the finishing line. I resolved all previous review comments that you solved with your rework. There are only very few review remarks to address (currently 5). Great work 👍
Could you have a look and get the last review comments implemented then we can merge this PR and finally close the story.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@aBega2000 thanks for your excellent and patient rework. You resolved all review comments and brought this to the finishing line. Excellent job 👍
Ready for merge.
Fixes: #439
With this PR I intend to solve the issue of tool-dependencies by refactoring and improving it as much as possible.
As can be seen, many classes are changed and this has happened because of the change in the install method where I now pass EnvironmentContext as argument. Namely this came from the point: "In runTool we can then first create the process context, pass it as EnvironmentContext to the installation method (needs some refactoring) so that there is only one single place in the code getting the dependencies and looping over them that does all together."
The problem at the moment is that some tests are not running successfully anymore. If this approach that I am following is correct, then the last step for this issue would be to fix the mentioned tests so that everything runs smoothly.