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

Function assertJavaDistribution

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

Source from the content-addressed store, hash-verified

319}
320
321func assertJavaDistribution(dir string, goos string) error {
322 var path = expectedJavaPath(dir, goos)
323 var err error
324 if _, err = os.Stat(path); os.IsNotExist(err) {
325 err = errors.New(path + " wasn't found. " +
326 "If you believe this is an error - please create a ticket at https://github.com/shyiko/jabba/issues " +
327 "(specify OS and command that was used)")
328 }
329 return err
330}
331
332func installFromDmg(src string, dst string) error {
333 tmp, err := ioutil.TempDir("", "jabba-i-")

Callers 2

normalizePathToBinJavaFunction · 0.85
LinkFunction · 0.85

Calls 1

expectedJavaPathFunction · 0.85

Tested by

no test coverage detected