Skip to content

Commit fb5be8b

Browse files
committed
[GR-65037] Prevent new substitutions for bundle apply without create.
PullRequest: graal/20851
2 parents 9814099 + 0b6bbf1 commit fb5be8b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

substratevm/src/com.oracle.svm.driver/src/com/oracle/svm/driver/BundleSupport.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,11 @@ private Path substitutePath(Path origPath, Path destinationDir) {
450450
return rootDir.resolve(previousRelativeSubstitutedPath);
451451
}
452452

453+
if (!this.writeBundle && destinationDir != auxiliaryOutputDir) {
454+
/* If this is bundle-apply only, no new substitutions needed for input paths. */
455+
return origPath;
456+
}
457+
453458
if (origPath.startsWith(nativeImage.config.getJavaHome())) {
454459
/* If origPath comes from native-image itself, substituting is not needed. */
455460
return origPath;

0 commit comments

Comments
 (0)