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

Method getPort

src/java/frameworks/debug.go:105–115  ·  view source on GitHub ↗

getPort returns the debug port

()

Source from the content-addressed store, hash-verified

103
104// getPort returns the debug port
105func (d *debugConfig) getPort() int {
106 // Check BPL_DEBUG_PORT first (Cloud Native Buildpacks convention)
107 bplPort := os.Getenv("BPL_DEBUG_PORT")
108 if bplPort != "" {
109 if port, err := strconv.Atoi(bplPort); err == nil && port > 0 {
110 return port
111 }
112 }
113
114 return d.Port
115}
116
117// getSuspend returns whether to suspend on start
118func (d *debugConfig) getSuspend() bool {

Callers 2

SupplyMethod · 0.45
FinalizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected