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

devonfw / IDEasy / 12807995443

16 Jan 2025 11:33AM UTC coverage: 67.83% (-0.02%) from 67.846%
12807995443

push

github

web-flow
#915: fix custom tools (#918)

2694 of 4341 branches covered (62.06%)

Branch coverage included in aggregate %.

6969 of 9905 relevant lines covered (70.36%)

3.09 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.process.EnvironmentContext;
5
import com.devonfw.tools.ide.repo.CustomToolMetadata;
6
import com.devonfw.tools.ide.version.GenericVersionRange;
7
import com.devonfw.tools.ide.version.VersionIdentifier;
8

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

14
  private CustomToolMetadata customTool;
15

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

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

28
  @Override
29
  public VersionIdentifier getConfiguredVersion() {
30

31
    return this.customTool.getVersion();
×
32
  }
33

34
  @Override
35
  public String getConfiguredEdition() {
36

37
    return this.customTool.getEdition();
×
38
  }
39

40
  @Override
41
  public ToolInstallation installTool(GenericVersionRange version, EnvironmentContext environmentContext, String edition) {
42

43
    return installTool(version, environmentContext, edition, this.context.getCustomToolRepository());
×
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

© 2026 Coveralls, Inc