martinweiler commented on code in PR #3686:
URL: 
https://github.com/apache/incubator-kie-kogito-runtimes/pull/3686#discussion_r1797413104


##########
kogito-codegen-modules/kogito-codegen-processes/src/main/java/org/kie/kogito/codegen/process/ProcessCodegen.java:
##########
@@ -144,6 +147,8 @@ public static ProcessCodegen 
ofCollectedResources(KogitoBuildContext context, Co
         if (useSvgAddon) {
             
context.addContextAttribute(ContextAttributesConstants.PROCESS_AUTO_SVG_MAPPING,
 processSVGMap);
         }
+        resources.stream().filter(resource -> 
resource.basePath().toString().equals(BUSINESS_CALENDAR_PATH))
+                .findFirst().ifPresent(resource -> 
context.addContextAttribute(BUSINESS_CALENDAR_RESOURCE_KEY, true));

Review Comment:
   `resource.basePath()` returns the path of the application jar. The check 
must happen on the contents of this jar instead.



-- 
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]

Reply via email to