gitgabrio opened a new issue, #2163:
URL: https://github.com/apache/incubator-kie-issues/issues/2163
application.yml file is ignored inside springboot-based kogito application.
It turns out that, inside `AbstractKogitoBuildContext.load(File...)` only
`application.properties` files are managed
```java
protected static Properties load(File... resourcePaths) {
Properties applicationProperties = new Properties();
for (File resourcePath : resourcePaths) {
try (FileReader fileReader = new FileReader(new
File(resourcePath, APPLICATION_PROPERTIES_FILE_NAME))) {
applicationProperties.load(fileReader);
} catch (IOException ioe) {
LOGGER.debug("Unable to load '" +
APPLICATION_PROPERTIES_FILE_NAME + "'.");
}
}
return applicationProperties;
}
```
Step to verify:
1. start any springboot example with `mvnDebug clean compile`
2. create a remote debug configuration (listening on port 8000) inside the
kogito-runtimes project
3. put a breakpoint at
[AbstractKogitoBuildContext#95](https://github.com/apache/incubator-kie-kogito-runtimes/blob/101eb03ad2acb9161bc4e02919ea98c235342af7/kogito-codegen-modules/kogito-codegen-api/src/main/java/org/kie/kogito/codegen/api/context/impl/AbstractKogitoBuildContext.java#L95)
4. start debugging
Scope of this task is to also manage application.yml files inside
Springboot-based applications
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]