Skip to content

Commit 18e33cf

Browse files
Bugfixes
1 parent cb9a248 commit 18e33cf

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

substratevm/mx.substratevm/mx_substratevm.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1016,6 +1016,7 @@ def _native_image_launcher_extra_jvm_args():
10161016
'--features=com.oracle.svm.driver.APIOptionFeature',
10171017
'--initialize-at-build-time=com.oracle.svm.driver',
10181018
'--link-at-build-time=com.oracle.svm.driver,com.oracle.svm.driver.metainf',
1019+
'-H:IncludeResources=com/oracle/svm/driver/launcher/.*',
10191020
] + svm_experimental_options([
10201021
'-H:-ParseRuntimeOptions',
10211022
])
@@ -1056,9 +1057,7 @@ def _native_image_launcher_extra_jvm_args():
10561057
destination="bin/<exe:native-image>",
10571058
jar_distributions=["substratevm:SVM_DRIVER"],
10581059
main_class=_native_image_launcher_main_class(),
1059-
build_args=driver_build_args + [
1060-
'-H:IncludeResources=com/oracle/svm/driver/launcher/.*',
1061-
],
1060+
build_args=driver_build_args,
10621061
extra_jvm_args=_native_image_launcher_extra_jvm_args(),
10631062
home_finder=False,
10641063
),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ private Path writeBundle() {
786786
createDockerfile(dockerfilePath);
787787
}
788788
} else if (!dockerfilePath.equals(containerSupport.dockerfile)) {
789-
Files.copy(containerSupport.dockerfile, dockerfilePath);
789+
Files.copy(containerSupport.dockerfile, dockerfilePath, StandardCopyOption.REPLACE_EXISTING);
790790
}
791791
} catch (IOException e) {
792792
throw NativeImage.showError("Failed to write bundle-file " + dockerfilePath, e);

0 commit comments

Comments
 (0)