• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

devonfw / IDEasy / 13345030211

15 Feb 2025 12:30PM UTC coverage: 67.959% (-0.5%) from 68.482%
13345030211

push

github

web-flow
#786: support ide upgrade to automatically update to the latest version of IDEasy (#1021)

Co-authored-by: Salim <salim.bouchara@capgemini.com>
Co-authored-by: salimbouch <145128725+salimbouch@users.noreply.github.com>
Co-authored-by: jan-vcapgemini <59438728+jan-vcapgemini@users.noreply.github.com>
Co-authored-by: jan-vcapgemini <jan-vincent.hoelzle@capgemini.com>

2966 of 4793 branches covered (61.88%)

Branch coverage included in aggregate %.

7690 of 10887 relevant lines covered (70.63%)

3.07 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
cli/src/main/java/com/devonfw/tools/ide/tool/CustomToolCommandlet.java
1
package com.devonfw.tools.ide.tool;
2

3
import com.devonfw.tools.ide.context.IdeContext;
4
import com.devonfw.tools.ide.tool.repository.CustomToolMetadata;
5
import com.devonfw.tools.ide.tool.repository.ToolRepository;
6
import com.devonfw.tools.ide.version.VersionIdentifier;
7

8
/**
9
 * {@link LocalToolCommandlet} for a {@link CustomToolMetadata}.
10
 */
11
public class CustomToolCommandlet extends LocalToolCommandlet {
12

13
  private CustomToolMetadata customTool;
14

15
  /**
16
   * The constructor.
17
   *
18
   * @param context the {@link IdeContext}.
19
   * @param customTool the {@link CustomToolMetadata} to handle (e.g. install or uninstall).
20
   */
21
  public CustomToolCommandlet(IdeContext context, CustomToolMetadata customTool) {
22

23
    super(context, customTool.getTool(), null);
×
24
    this.customTool = customTool;
×
25
  }
×
26

27
  @Override
28
  public ToolRepository getToolRepository() {
29

30
    return this.context.getCustomToolRepository();
×
31
  }
32

33
  @Override
34
  public VersionIdentifier getConfiguredVersion() {
35

36
    return this.customTool.getVersion();
×
37
  }
38

39
  @Override
40
  public String getConfiguredEdition() {
41

42
    return this.customTool.getEdition();
×
43
  }
44

45
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc