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

devonfw / IDEasy / 12767464202

14 Jan 2025 12:18PM UTC coverage: 67.812% (-0.02%) from 67.829%
12767464202

Pull #918

github

web-flow
Merge d224401e4 into c62e3834a
Pull Request #918: #915: fix custom tools

2690 of 4337 branches covered (62.02%)

Branch coverage included in aggregate %.

6963 of 9898 relevant lines covered (70.35%)

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