Package org.fhirfrog.frog.ant
Class FhirBootstrapTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.fhirfrog.frog.ant.FhirBootstrapTask
- All Implemented Interfaces:
Cloneable
public class FhirBootstrapTask
extends org.apache.tools.ant.Task
Ant task that performs a one-time HAPI FHIR bootstrap and captures the loaded
server state as a committed Docker image plus a
pg_dump SQL file.
Delegates to DockerBootstrap for all Docker lifecycle orchestration.
This task is a thin adapter between Ant's lifecycle and the framework-agnostic
bootstrap library.
Example
<fhirbootstrap imageTag="hapi-erequesting:0.2.0"
composeFile=".fhir-frog/docker-compose.yml"
containerName="fhir-frog-hapi-bootstrap"
pgContainerName="fhir-frog-postgres-bootstrap"/>
-
Field Summary
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapperFields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()voidsetComposeFile(String composeFile) voidsetContainerName(String containerName) voidsetImageTag(String imageTag) voidsetMaxRetries(int maxRetries) voidvoidsetPgDumpFile(String pgDumpFile) voidsetRetryIntervalMs(long ms) Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
FhirBootstrapTask
public FhirBootstrapTask()
-
-
Method Details
-
setImageTag
-
setPgDumpFile
-
setComposeFile
-
setContainerName
-
setPgContainerName
-
setMaxRetries
public void setMaxRetries(int maxRetries) -
setRetryIntervalMs
public void setRetryIntervalMs(long ms) -
execute
public void execute() throws org.apache.tools.ant.BuildException- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-