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

devonfw / IDEasy / 25501148981

07 May 2026 02:11PM UTC coverage: 70.77% (+0.03%) from 70.741%
25501148981

Pull #1894

github

web-flow
Merge 25cbc65e4 into fd215c395
Pull Request #1894: #1892: fixed gui-launcher pom.xml not being included in native images on nightly/release builds.

4407 of 6880 branches covered (64.06%)

Branch coverage included in aggregate %.

11362 of 15402 relevant lines covered (73.77%)

3.12 hits per line

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

23.81
cli/src/main/java/com/devonfw/tools/ide/tool/gui/Gui.java
1
package com.devonfw.tools.ide.tool.gui;
2

3
import java.nio.file.Files;
4
import java.nio.file.Path;
5
import java.util.List;
6

7
import org.slf4j.Logger;
8
import org.slf4j.LoggerFactory;
9

10
import com.devonfw.tools.ide.commandlet.Commandlet;
11
import com.devonfw.tools.ide.context.IdeContext;
12
import com.devonfw.tools.ide.process.ProcessContext;
13
import com.devonfw.tools.ide.process.ProcessContextImpl;
14
import com.devonfw.tools.ide.process.ProcessMode;
15
import com.devonfw.tools.ide.tool.java.Java;
16
import com.devonfw.tools.ide.tool.mvn.Mvn;
17

18
/**
19
 * {@link Commandlet} to launch the IDEasy GUI.
20
 */
21
public class Gui extends Commandlet {
22

23
  private static final Logger LOG = LoggerFactory.getLogger(Gui.class);
4✔
24

25
  /**
26
   * @param context the {@link IdeContext}.
27
   */
28
  public Gui(IdeContext context) {
29

30
    super(context);
3✔
31
    addKeyword(getName());
4✔
32
  }
1✔
33

34
  @Override
35
  public String getName() {
36

37
    return "gui";
2✔
38
  }
39

40
  @Override
41
  protected void doRun() {
42

43
    ProcessContext processContext = new ProcessContextImpl(this.context);
×
44

45
    Java java = this.context.getCommandletManager().getCommandlet(Java.class);
×
46
    Mvn mvn = this.context.getCommandletManager().getCommandlet(Mvn.class);
×
47
    java.install(false);
×
48
    mvn.install(false);
×
49

50
    LOG.debug("Starting GUI via commandlet");
×
51

52
    Path pomPath = context.getIdeInstallationPath().resolve("gui/pom.xml");
×
53
    if (!Files.exists(pomPath)) {
×
54
      LOG.error("Fatal error: The pom.xml file required for launching the IDEasy GUI could not be found in expected location: {}", pomPath);
×
55
      return;
×
56
    }
57

58
    List<String> args = List.of(
×
59
        "-f",
60
        pomPath.toString(),
×
61
        "exec:exec",
62
        "-Dexec.executable=java",
63
        "-Dexec.classpathScope=compile",
64
        "-Dexec.args=-classpath %classpath com.devonfw.ide.gui.AppLauncher"
65
    );
66

67
    mvn.runTool(processContext, ProcessMode.DEFAULT, args);
×
68
  }
×
69
}
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