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

devonfw / IDEasy / 12762884173

14 Jan 2025 07:19AM UTC coverage: 67.523% (-0.02%) from 67.541%
12762884173

Pull #918

github

web-flow
Merge f0caeba16 into 875fbff84
Pull Request #918: #915: fix custom tools

2576 of 4160 branches covered (61.92%)

Branch coverage included in aggregate %.

6672 of 9536 relevant lines covered (69.97%)

3.08 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.CustomTool;
6
import com.devonfw.tools.ide.version.GenericVersionRange;
7
import com.devonfw.tools.ide.version.VersionIdentifier;
8

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

14
  private CustomTool customTool;
15

16
  /**
17
   * The constructor.
18
   *
19
   * @param context the {@link IdeContext}.
20
   * @param customTool the {@link CustomTool} to handle (e.g. install or uninstall).
21
   */
22
  public CustomToolCommandlet(IdeContext context, CustomTool 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