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)

* [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: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com>

---------

Co-authored-by: gmunozfe <gmunozfe@gmunozfe-thinkpadp1gen3.remote.csb>
Co-authored-by: Francisco Javier Tirado Sarti <65240126+fjtirado@users.noreply.github.com>
  • Loading branch information
3 people committed Jan 17, 2024
1 parent 2071d58 commit 23e4ef4
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 23e4ef4

Please sign in to comment.