Fixup OSX CI breaks.

Review Request #2241 - Created May 18, 2015 and submitted

John Sirois
fkorotkov, zundel
Kill now-dead `-e` and `-t` flags in one of the OSX CI shards.

Fixup Distribution to discover its true home dir even if initial
discovery is via the jre `java` executable and add unit tests to
exercise this.  Also fixup both binary and lib_path discovery to
check both JDK and JRE bin and lib paths when the distribution is a JDK.

 .travis.osx.yml                                                |   2 +-
 src/python/pants/java/distribution/             |  56 ++++++++---
 tests/python/pants_test/java/distribution/ | 270 ++++++++++++++++++++++++++++----------------------
 tests/python/pants_test/java/                  |   9 +-
 4 files changed, 203 insertions(+), 134 deletions(-)

The OSX CI flag breaks looked like so:

Once fixed, the tools.jar discovery breaks looked like so:

I setup a manual force push to OSX CI with:

$ cp .travis.osx.yml .travis.yml && \
  git commit -am 'Setup a manual OSX CI run for' && \
  git push -f HEAD:master && \
  git reset --hard HEAD~1

That OSX CI went green here:

Linux CI went green here:

Eric Ayers
John Sirois
John Sirois
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Eric Ayers
Ship It!