Actual behavior
ide install java 18
JAVA_VERSION=18 has been set in SETTINGS@C:\Users\<user>\projects\Test\settings\ide.properties
Version 18 for tool java does not exist in edition java.
Error: IDEasy failed with exit code 1
Reproduce
ide install java 18
Expected behavior
The error should've been caught earlier, so the JAVA_VERSION wouldn't have been overwritten by a non-existing version.
IDEasy status
IDE_ROOT is set to ~/projects
IDE_HOME is set to ~/projects/project
You are online.
Your settings are up-to-date.
Your version of IDEasy is 2025.07.002.
Your are using the latest version of IDEasy and no update is available.
Your operating system is windows(10.0)@x64 [Windows 11@amd64]
Successfully completed ide (status)
Related/Dependent issues
No response
Comments/Hints
The version is being set within the run() method of the InstallCommandlet. Afterwards, the installation is attempted, but will fail. The non-existing version is still set in the settings.
|
if (versionIdentifier != null) { |
|
commandlet.setVersion(versionIdentifier, false); |
|
} |
|
commandlet.install(false); |
Actual behavior
Reproduce
ide install java 18Expected behavior
The error should've been caught earlier, so the
JAVA_VERSIONwouldn't have been overwritten by a non-existing version.IDEasy status
Related/Dependent issues
No response
Comments/Hints
The version is being set within the
run()method of theInstallCommandlet. Afterwards, the installation is attempted, but will fail. The non-existing version is still set in the settings.IDEasy/cli/src/main/java/com/devonfw/tools/ide/commandlet/InstallCommandlet.java
Lines 74 to 77 in 59172b2