davsclaus commented on code in PR #18619:
URL: https://github.com/apache/camel/pull/18619#discussion_r2207248518


##########
dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/DependencyUpdate.java:
##########
@@ -71,6 +72,16 @@ public Integer doCall() throws Exception {
             updateJBangSource();
         }
 
+        if (maven && this.runtime == null) {
+            // Basic heuristic to determine if the project is a Quarkus or 
Spring Boot one.
+            String pomContent = new String(Files.readAllBytes(file));
+            if (pomContent.contains("quarkus")) {
+                runtime = RuntimeType.quarkus;
+            } else if (pomContent.contains("spring-boot")) {
+                runtime = RuntimeType.springBoot;
+            }

Review Comment:
   if none of these then it should be RuntimeType.main I suppose



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

Reply via email to