(configValue string)
| 321 | } |
| 322 | |
| 323 | func parseJBPConfigVersion(configValue string) string { |
| 324 | re := regexp.MustCompile(`version:\s*['"]?([0-9]+[0-9.*+]*)['"]?`) |
| 325 | matches := re.FindStringSubmatch(configValue) |
| 326 | if len(matches) >= 2 { |
| 327 | return strings.TrimSpace(matches[1]) |
| 328 | } |
| 329 | return "" |
| 330 | } |
| 331 | |
| 332 | // WriteJavaOpts writes JAVA_OPTS to a .opts file for centralized assembly |
| 333 | // JRE components use priority 05 to run early (before frameworks) |