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

devonfw / IDEasy / 13344877458

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

Pull #1021

github

web-flow
Merge 3118dedf4 into c70643978
Pull Request #1021: #786: support ide upgrade to automatically update to the latest version of IDEasy

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