(dir string, goos string)
| 319 | } |
| 320 | |
| 321 | func 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 | |
| 332 | func installFromDmg(src string, dst string) error { |
| 333 | tmp, err := ioutil.TempDir("", "jabba-i-") |
no test coverage detected