java.lang.Object
org.apache.camel.dsl.jbang.core.commands.CamelCommand
org.apache.camel.dsl.jbang.core.commands.update.UpdateRun
All Implemented Interfaces:
Callable<Integer>

public class UpdateRun extends CamelCommand
Command to update a Camel project to a specified version. This command supports updating projects for different runtimes such as Camel Main, Spring Boot, and Quarkus. It uses Maven and OpenRewrite to apply the necessary updates.
  • Constructor Details

  • Method Details

    • doCall

      public Integer doCall() throws Exception
      Executes the update command for a Camel project. This method determines the appropriate Maven command based on the runtime type (Camel Main, Spring Boot, or Quarkus) and executes it to update the project to the specified version.
      Specified by:
      doCall in class CamelCommand
      Returns:
      the exit code of the update process (0 for success, -1 for failure)
      Throws:
      Exception - if an error occurs during the update process