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
  • Loading branch information
gmunozfe committed Dec 13, 2023
1 parent a94c05f commit 50f5a50
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 50f5a50

Please sign in to comment.