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

devonfw / IDEasy / 25682255870

11 May 2026 04:13PM UTC coverage: 70.743% (+0.03%) from 70.714%
25682255870

push

github

web-flow
#1892: fixed gui-launcher pom.xml not being included in native images on nightly/release builds. (#1894)

Co-authored-by: Jörg Hohwiller <hohwille@users.noreply.github.com>

4430 of 6910 branches covered (64.11%)

Branch coverage included in aggregate %.

11393 of 15457 relevant lines covered (73.71%)

3.12 hits per line

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

20.83
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.cli.CliException;
11
import com.devonfw.tools.ide.commandlet.Commandlet;
12
import com.devonfw.tools.ide.context.IdeContext;
13
import com.devonfw.tools.ide.process.ProcessContext;
14
import com.devonfw.tools.ide.process.ProcessContextImpl;
15
import com.devonfw.tools.ide.process.ProcessMode;
16
import com.devonfw.tools.ide.tool.ToolEditionAndVersion;
17
import com.devonfw.tools.ide.tool.ToolInstallRequest;
18
import com.devonfw.tools.ide.tool.java.Java;
19
import com.devonfw.tools.ide.tool.mvn.Mvn;
20
import com.devonfw.tools.ide.version.VersionIdentifier;
21

22
/**
23
 * {@link Commandlet} to launch the IDEasy GUI.
24
 */
25
public class Gui extends Commandlet {
26

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

29
  /**
30
   * @param context the {@link IdeContext}.
31
   */
32
  public Gui(IdeContext context) {
33

34
    super(context);
3✔
35
    addKeyword(getName());
4✔
36
  }
1✔
37

38
  @Override
39
  public String getName() {
40

41
    return "gui";
2✔
42
  }
43

44
  @Override
45
  protected void doRun() {
46

47
    ProcessContext processContext = new ProcessContextImpl(this.context);
×
48

49
    ToolInstallRequest toolInstallRequest = new ToolInstallRequest(false);
×
50
    toolInstallRequest.setProcessContext(processContext);
×
51
    toolInstallRequest.setRequested(
×
52
        new ToolEditionAndVersion(VersionIdentifier.of("25.*"))
×
53
    );
54

55
    Java java = this.context.getCommandletManager().getCommandlet(Java.class);
×
56
    Mvn mvn = this.context.getCommandletManager().getCommandlet(Mvn.class);
×
57
    java.install(toolInstallRequest);
×
58
    mvn.install(false);
×
59

60
    LOG.debug("Starting GUI via commandlet");
×
61

62
    Path pomPath = context.getIdeInstallationPath().resolve("gui/pom.xml");
×
63
    if (!Files.exists(pomPath)) {
×
64
      throw new CliException("Fatal error: The pom.xml file required for launching the IDEasy GUI could not be found in expected location: " + pomPath);
×
65
    }
66

67
    List<String> args = List.of(
×
68
        "-f",
69
        pomPath.toString(),
×
70
        "exec:exec",
71
        "-Dexec.executable=java",
72
        "-Dexec.classpathScope=compile",
73
        "-Dexec.args=-classpath %classpath com.devonfw.ide.gui.AppLauncher"
74
    );
75

76
    mvn.runTool(processContext, ProcessMode.DEFAULT, args);
×
77
  }
×
78
}
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