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

devonfw / IDEasy / 22303886886

23 Feb 2026 11:19AM UTC coverage: 70.647% (+0.2%) from 70.474%
22303886886

Pull #1714

github

web-flow
Merge f1f7e1e61 into 379acdc9d
Pull Request #1714: #404: #1713: advanced logging

4069 of 6360 branches covered (63.98%)

Branch coverage included in aggregate %.

10644 of 14466 relevant lines covered (73.58%)

3.1 hits per line

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

85.71
cli/src/main/java/com/devonfw/tools/ide/commandlet/UpgradeCommandlet.java
1
package com.devonfw.tools.ide.commandlet;
2

3
import org.slf4j.Logger;
4
import org.slf4j.LoggerFactory;
5

6
import com.devonfw.tools.ide.context.IdeContext;
7
import com.devonfw.tools.ide.log.IdeLogLevel;
8
import com.devonfw.tools.ide.property.EnumProperty;
9
import com.devonfw.tools.ide.tool.IdeasyCommandlet;
10
import com.devonfw.tools.ide.tool.ToolInstallation;
11

12
/**
13
 * {@link Commandlet} to upgrade the version of IDEasy
14
 */
15
public class UpgradeCommandlet extends Commandlet {
16

17
  private static final Logger LOG = LoggerFactory.getLogger(UpgradeCommandlet.class);
4✔
18

19
  /** Optional {@link UpgradeMode}. */
20
  public final EnumProperty<UpgradeMode> mode;
21

22
  /**
23
   * The constructor.
24
   *
25
   * @param context the {@link IdeContext}.
26
   */
27
  public UpgradeCommandlet(IdeContext context) {
28

29
    super(context);
3✔
30
    addKeyword(getName());
4✔
31
    this.mode = add(new EnumProperty<>("--mode", false, null, UpgradeMode.class));
12✔
32
  }
1✔
33

34
  @Override
35
  public String getName() {
36

37
    return "upgrade";
2✔
38
  }
39

40
  @Override
41
  public boolean isIdeHomeRequired() {
42

43
    return false;
2✔
44
  }
45

46
  @Override
47
  protected void doRun() {
48

49
    IdeasyCommandlet ideasy = new IdeasyCommandlet(this.context, this.mode.getValue());
10✔
50
    ToolInstallation installation = ideasy.install(false);
4✔
51
    if (installation.newInstallation()) {
3!
52
      IdeLogLevel.INTERACTION.log(LOG, "It is recommended to run 'ide update' on your IDEasy projects now.");
×
53
    }
54
  }
1✔
55

56
}
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