Skip to content

Commit

Permalink
Merge pull request #13908 from zakkak/windows-native-image-fix
Browse files Browse the repository at this point in the history
Ensure lib directory exists when building debug-enabled native-images
  • Loading branch information
gsmet authored Dec 16, 2020
2 parents 1ac613e + 330ad57 commit 12f5a9d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ private void copyJarSourcesToLib(OutputTargetBuildItem outputTargetBuildItem,
Path targetDirectory = outputTargetBuildItem.getOutputDirectory()
.resolve(outputTargetBuildItem.getBaseName() + "-native-image-source-jar");
Path libDir = targetDirectory.resolve(JarResultBuildStep.LIB);
File libDirFile = libDir.toFile();
if (!libDirFile.exists()) {
libDirFile.mkdirs();
}

final List<AppDependency> appDeps = curateOutcomeBuildItem.getEffectiveModel().getUserDependencies();
for (AppDependency appDep : appDeps) {
Expand Down

0 comments on commit 12f5a9d

Please sign in to comment.