Skip to content

#673: fixed tomcat and improved logging#725

Merged
hohwille merged 2 commits intodevonfw:mainfrom
hohwille:feature/673-fix-tomcat-java-env
Oct 29, 2024
Merged

#673: fixed tomcat and improved logging#725
hohwille merged 2 commits intodevonfw:mainfrom
hohwille:feature/673-fix-tomcat-java-env

Conversation

@hohwille
Copy link
Copy Markdown
Member

@hohwille hohwille commented Oct 29, 2024

fixes #673

  • One fix was also in ide-urls commit
  • The main fix here was that environmentContext was not passed to recursive install method (in such situations a NPE would have been preferred that is prevented by the EMPTY instance of EnvironmentContext)
  • And for the record: IntelliJ has a severe flaw. When you run this use-case from IntelliJ, there is no way to stop the process in Intellij. The only way to end it and being able to start another run is to find and kill the process manually in task manager (what requires ProcessExplorer). This works flawless in Eclipse.

@hohwille hohwille added enhancement New feature or request logging IDEasy specific logging (levels, messages, etc.) dependency labels Oct 29, 2024
@hohwille hohwille added this to the release:2024.11.001 milestone Oct 29, 2024
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Oct 29, 2024

Pull Request Test Coverage Report for Build 11578617032

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 14 unchanged lines in 3 files lost coverage.
  • Overall coverage increased (+0.01%) to 66.715%

Files with Coverage Reduction New Missed Lines %
com/devonfw/tools/ide/tool/graalvm/GraalVm.java 3 62.5%
com/devonfw/tools/ide/url/model/file/json/ToolDependencies.java 4 81.25%
com/devonfw/tools/ide/tool/LocalToolCommandlet.java 7 86.19%
Totals Coverage Status
Change from base Build 11560364436: 0.01%
Covered Lines: 6282
Relevant Lines: 9072

💛 - Coveralls

@hohwille hohwille changed the title #673: tomcat improvements (esp. logging) #673: fixed tomcat and improved logging Oct 29, 2024
@hohwille hohwille merged commit 2137a23 into devonfw:main Oct 29, 2024
if (Files.exists(file)) {
try (BufferedReader reader = Files.newBufferedReader(file)) {
TypeReference<HashMap<VersionRange, List<ToolDependency>>> typeRef = new TypeReference<>() {
TypeReference<TreeMap<VersionRange, List<ToolDependency>>> typeRef = new TypeReference<>() {
Copy link
Copy Markdown
Contributor

@jan-vcapgemini jan-vcapgemini Oct 29, 2024

Choose a reason for hiding this comment

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

Why was this converted to a TreeMap?
I've found out that a LinkedHashMap would be more effective, if we don't want to change the ordering.
See: https://www.baeldung.com/java-treemap

private void installToolDependencies(VersionIdentifier version, String edition, EnvironmentContext environmentContext, ToolRepository toolRepository) {
Collection<ToolDependency> dependencies = toolRepository.findDependencies(this.tool, edition, version);
String toolWithEdition = getToolWithEdition(this.tool, edition);
int size = dependencies.size();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does not look like we need this variable. Only used once.

Copy link
Copy Markdown
Contributor

@jan-vcapgemini jan-vcapgemini left a comment

Choose a reason for hiding this comment

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

I've added some questions, please check.

nmCapG pushed a commit to nmCapG/IDEasy that referenced this pull request Oct 30, 2024
@hohwille hohwille added dependencies dependencies.json (if tool A requires tool B) and removed dependency labels Dec 1, 2025
MarvMa pushed a commit to MarvMa/IDEasy that referenced this pull request Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies dependencies.json (if tool A requires tool B) enhancement New feature or request logging IDEasy specific logging (levels, messages, etc.)

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

Tomcat still not working (JAVA_HOME not set)

3 participants