Skip to content

Commit

Permalink
Honor configured profile when determining the execution environment
Browse files Browse the repository at this point in the history
When calculating the best matching profile, any explicitly configured
profile is effectively overwritten with the one matching the current
runtime version.

This makes it impossible to select a profile older than the JRE Tycho is
executed with. As a result, properties such as the "useJDK" are ignored
if the BREE of the bundle is smaller than the current Java version.
  • Loading branch information
ptziegler committed Dec 20, 2024
1 parent cfd83b1 commit 8d60784
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -563,6 +563,7 @@ private void applyBestOfCurrentOrConfiguredProfile(String configuredProfileName,
if (configuredProfile != null) {
// non standard profile, stick to it
sink.setProfileConfiguration(configuredProfileName, reason);
return;
}
StandardExecutionEnvironment currentProfile = ExecutionEnvironmentUtils.getExecutionEnvironment(
"JavaSE-" + Runtime.version().feature(), toolchainManager, mavenSession, logger);
Expand Down

0 comments on commit 8d60784

Please sign in to comment.