Skip to content

Commit

Permalink
[JBPM-10214] Fix regression for immutable KIE container with auto scan (
Browse files Browse the repository at this point in the history
#3004) (#3013)

* [JBPM-10214] Fix regression for immutable KIE container with auto scan

* Update kie-spring-boot/kie-spring-boot-autoconfiguration/kie-server-spring-boot-autoconfiguration/src/main/java/org/kie/server/springboot/autoconfiguration/KieServerAutoConfiguration.java



---------

Co-authored-by: Gonzalo Muñoz <[email protected]>
Co-authored-by: gmunozfe <[email protected]>
Co-authored-by: Francisco Javier Tirado Sarti <[email protected]>
  • Loading branch information
4 people authored Jan 24, 2024
1 parent 7328405 commit e72794b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ public List<KieContainerResource> buildDeployments(KieServerProperties kieServer
public List<KieContainerResource> buildAutoScanDeployments(KieServerProperties kieServerProperties) throws IOException {
ApplicationHome appHome = new ApplicationHome();
final String folder = "BOOT-INF/classes/KIE-INF/lib/";
return (explodedJarFolder == null) ? discoverDeployments(folder, new FileInputStream(appHome.getSource())) : discoverDeployments(folder, new File(explodedJarFolder));
List<KieContainerResource> containerResources = discoverDeployments(folder, new File(explodedJarFolder));
return containerResources.isEmpty() ? discoverDeployments(folder, new FileInputStream(appHome.getSource())) : containerResources;
}

public List<KieContainerResource> discoverDeployments(String folder, File root) {
Expand Down

0 comments on commit e72794b

Please sign in to comment.