Class UpdateRun
java.lang.Object
org.apache.camel.dsl.jbang.core.commands.CamelCommand
org.apache.camel.dsl.jbang.core.commands.update.UpdateRun
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.camel.dsl.jbang.core.commands.CamelCommand
CamelCommand.ParameterConsumer<T> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.camel.dsl.jbang.core.commands.CamelCommand
call, configureLoggingOff, disarrangeLogging, getActionFile, getDebugFile, getMain, getOutputFile, getReceiveFile, getRunBackgroundLogFile, getStatusFile, getTraceFile, printConfigurationValues, printer
-
Constructor Details
-
UpdateRun
-
-
Method Details
-
doCall
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:
doCallin classCamelCommand- Returns:
- the exit code of the update process (0 for success, -1 for failure)
- Throws:
Exception- if an error occurs during the update process
-