Skip to content

Commit 0b6bbf1

Browse files
committed
Prevent new substitutions for bundle apply without create
1 parent 69f10d3 commit 0b6bbf1

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)