Skip to content

Commit

Permalink
Fix #885 - 'includePackedArtifacts' must be automatically disabled when
Browse files Browse the repository at this point in the history
running with an incompatible vm
  • Loading branch information
laeubi committed Apr 13, 2022
1 parent 625ef43 commit 138591d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Expand Up @@ -5,6 +5,7 @@ This page describes the noteworthy improvements provided by each release of Ecli
## 2.7.2
Fixes:
- [2.7.1][regression] Neither raw version nor format was specified #876
- [2.7.1] 'includePackedArtifacts' must be automatically disabled when running with an incompatible vm #885

## 2.7.1

Expand Down
Expand Up @@ -9,6 +9,7 @@
* Sonatype Inc. - initial API and implementation
* Christoph Läubrich - [Bug 461284] - Improve discovery and attach of .target files in eclipse-target-definition
* [Bug 567098] - pomDependencies=consider should wrap non-osgi jars
* [Issue #885] - 'includePackedArtifacts' must be automatically disabled when running with an incompatible vm
*******************************************************************************/
package org.eclipse.tycho.core.resolver;

Expand Down Expand Up @@ -167,7 +168,12 @@ private void setIncludePackedArtifacts(TargetPlatformConfiguration result, Xpp3D
if (value == null) {
return;
}
result.setIncludePackedArtifacts(Boolean.parseBoolean(value));
boolean include = Boolean.parseBoolean(value);
if (include && Runtime.version().feature() >= 14) {
logger.warn("Pack200 is not supported when running on Java 14 and higher");
return;
}
result.setIncludePackedArtifacts(include);
}

private void setTargetDefinitionIncludeSources(TargetPlatformConfiguration result, Xpp3Dom configuration)
Expand Down

0 comments on commit 138591d

Please sign in to comment.