resolveJRE finds the JRE registered under the given name.
(ctx *common.Context, name string)
| 143 | |
| 144 | // resolveJRE finds the JRE registered under the given name. |
| 145 | func resolveJRE(ctx *common.Context, name string) (jres.JRE, error) { |
| 146 | registry := jres.NewRegistry(ctx) |
| 147 | registry.RegisterStandardJREs() |
| 148 | jre := registry.Get(name) |
| 149 | if jre == nil { |
| 150 | return nil, fmt.Errorf("no JRE registered with name %q", name) |
| 151 | } |
| 152 | return jre, nil |
| 153 | } |
| 154 | |
| 155 | // finalizeJRE finalizes the JRE configuration (memory calculator, jvmkill, etc.) |
| 156 | func (f *Finalizer) finalizeJRE() error { |
no test coverage detected