MCPcopy Index your code
hub / github.com/cloudfoundry/java-buildpack / Supply

Method Supply

src/java/frameworks/debug.go:38–58  ·  view source on GitHub ↗

Supply performs debug setup during supply phase

()

Source from the content-addressed store, hash-verified

36
37// Supply performs debug setup during supply phase
38func (d *DebugFramework) Supply() error {
39 config, err := d.loadConfig()
40 if err != nil {
41 d.context.Log.Warning("Failed to load debug config: %s", err.Error())
42 return nil // Don't fail the build
43 }
44 if !config.isEnabled() {
45 return nil
46 }
47
48 port := config.getPort()
49 suspend := config.getSuspend()
50
51 suspendMsg := ""
52 if suspend {
53 suspendMsg = ", suspended on start"
54 }
55
56 d.context.Log.BeginStep("Debugging enabled on port %d%s", port, suspendMsg)
57 return nil
58}
59
60// Finalize adds debug options to JAVA_OPTS
61func (d *DebugFramework) Finalize() error {

Callers

nothing calls this directly

Calls 4

loadConfigMethod · 0.95
getSuspendMethod · 0.80
isEnabledMethod · 0.45
getPortMethod · 0.45

Tested by

no test coverage detected