MCPcopy
hub / github.com/shyiko/jabba / expectedJavaPath

Function expectedJavaPath

command/install.go:309–319  ·  view source on GitHub ↗
(dir string, goos string)

Source from the content-addressed store, hash-verified

307}
308
309func expectedJavaPath(dir string, goos string) string {
310 var osSpecificSubDir = ""
311 if goos == "darwin" {
312 osSpecificSubDir = filepath.Join("Contents", "Home")
313 }
314 java := "java"
315 if goos == "windows" {
316 java = "java.exe"
317 }
318 return filepath.Join(dir, osSpecificSubDir, "bin", java)
319}
320
321func assertJavaDistribution(dir string, goos string) error {
322 var path = expectedJavaPath(dir, goos)

Callers 2

normalizePathToBinJavaFunction · 0.85
assertJavaDistributionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected