Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Finalizer ¶
type Finalizer struct {
Stager common.Stager
Manifest common.Manifest
Installer common.Installer
Log *libbuildpack.Logger
Command common.Command
Container containers.Container
JRE jres.JRE
ContainerName string
JREName string
BuildpackDir string
}
func NewFinalizer ¶
func NewFinalizer(stager common.Stager, manifest common.Manifest, installer common.Installer, logger *libbuildpack.Logger, command common.Command) (*Finalizer, error)
NewFinalizer creates a Finalizer by reading the config.yml written by the supply phase. This follows the pattern established by go-buildpack and dotnet-core-buildpack.
func (*Finalizer) InstallJavaexecLauncher ¶
InstallJavaexecLauncher copies the javaexec launcher binary into the dependency directory so it is present in the droplet at runtime. The start command (see containers.JavaExecCommand) invokes it as $DEPS_DIR/<idx>/bin/javaexec to tokenize JAVA_OPTS without a shell.
Source path resolution (first match wins):
- JAVAEXEC_BINARY_PATH env var — set by bin/finalize for source/git usage where javaexec is built into a temp dir alongside the finalize binary.
- <buildpackDir>/bin/javaexec — present in packaged buildpacks built by scripts/build.sh.
The binary is required: missing it means the generated start command would fail at launch, so this returns an error rather than continuing.
Click to show internal directories.
Click to hide internal directories.