smongiar opened a new pull request, #23053:
URL: https://github.com/apache/camel/pull/23053

   When running `camel run` in Spring Boot mode, the internal export step calls 
`copySettingsAndProfile()` to write `application.properties` to the build work 
directory. However, the target directory (`src/main/resources` inside 
`.camel-jbang/work`) may not exist at the time of the write, causing a 
`NoSuchFileException`.
   
   This adds a defensive `Files.createDirectories()` call before writing the 
file.
   
   ```
   java.nio.file.NoSuchFileException: 
.camel-jbang/work/src/main/resources/application.properties
       at ExportBaseCommand.copySettingsAndProfile(ExportBaseCommand.java:882)
       at ExportSpringBoot.export(ExportSpringBoot.java:119)
       at Run.runSpringBoot(Run.java:1319)
       at Run.run(Run.java:516)
       at Run.doCall(Run.java:399)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to