Package io.quarkus.deployment.builditem
Class InitTaskBuildItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.deployment.builditem.InitTaskBuildItem
Represents an initialization task for the application.
Often extensions perform some sort of initialization as part of the application startup.
There are cases where we want to externalize the initialization (e.g. in a pipeline).
Often the task is run using the same artifact as the application but using a different command or
arguments. In the later case it might be desirable to pass additional environment variables to both the
init tasks (to enable init) and the application (to disable the init).
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic InitTaskBuildItem
create()
getImage()
getName()
boolean
Flag for tasks that require access to the environment variables of the application.boolean
Flag for tasks that need to share the file system with the application.withAppEnvVars
(Map<String, String> appEnvVars) withArguments
(List<String> arguments) withCommand
(List<String> command) withSharedEnvironment
(boolean sharedEnvironment) withSharedFilesystem
(boolean sharedFilesystem) withTaskEnvVars
(Map<String, String> taskEnvVars)
-
Constructor Details
-
InitTaskBuildItem
-
-
Method Details
-
create
-
getName
-
withName
-
getImage
-
withImage
-
getCommand
-
withCommand
-
getArguments
-
withArguments
-
getTaskEnvVars
-
withTaskEnvVars
-
getAppEnvVars
-
withAppEnvVars
-