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

Function parseJBPConfigVersion

src/java/jres/jre.go:323–330  ·  view source on GitHub ↗
(configValue string)

Source from the content-addressed store, hash-verified

321}
322
323func 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)

Callers 1

GetJREVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected