diff --git a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java index 75ba060b0e62c..e193d5a119e9b 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/pkg/steps/NativeImageBuildStep.java @@ -223,11 +223,6 @@ public NativeImageBuildItem build(NativeConfig nativeConfig, NativeImageSourceJa Path finalSymbolsPath = outputTargetBuildItem.getOutputDirectory().resolve(symbolsName); IoUtils.copy(generatedSymbols, finalSymbolsPath); Files.delete(generatedSymbols); - final String sources = "sources"; - final Path generatedSources = outputDir.resolve(sources); - final Path finalSources = outputTargetBuildItem.getOutputDirectory().resolve(sources); - IoUtils.copy(generatedSources, finalSources); - IoUtils.recursiveDelete(generatedSources); } else { log.warn( "objcopy executable not found in PATH. Debug symbols therefore cannot be placed into the dedicated directory.");