MCPcopy Create free account
hub / github.com/cloudfoundry/java-buildpack / convertToRuntimePath

Method convertToRuntimePath

src/java/jres/jvmkill.go:182–186  ·  view source on GitHub ↗

convertToRuntimePath converts a staging path to a runtime path using $DEPS_DIR. The path ends up in a .opts file that is read by the profile.d assembly script, which expands $DEPS_DIR before passing the value to the JVM.

(stagingPath string)

Source from the content-addressed store, hash-verified

180// The path ends up in a .opts file that is read by the profile.d assembly script,
181// which expands $DEPS_DIR before passing the value to the JVM.
182func (j *JVMKillAgent) convertToRuntimePath(stagingPath string) string {
183 depsIdx := j.ctx.Stager.DepsIdx()
184 filename := filepath.Base(stagingPath)
185 return fmt.Sprintf("$DEPS_DIR/%s/jre/bin/%s", depsIdx, filename)
186}
187
188// getHeapDumpPath checks for volume service with heap-dump tag and returns path
189func (j *JVMKillAgent) getHeapDumpPath() string {

Callers 1

FinalizeMethod · 0.95

Calls 1

DepsIdxMethod · 0.65

Tested by

no test coverage detected