Supply performs debug setup during supply phase
()
| 36 | |
| 37 | // Supply performs debug setup during supply phase |
| 38 | func (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 |
| 61 | func (d *DebugFramework) Finalize() error { |
nothing calls this directly
no test coverage detected