fix #466 development server on OS X

a bit more verbose than I would have liked, and probably doesn't work for Windows.
Good to have a nice spread of platforms on the dev team : )


On Tue, Jul 8, 2014 at 1:07 PM, Eric Daniel <notifications@github.com>
wrote:

> In build.sbt:
>
> > +  // manual
> > +  sys.env.get("JDK_HOME"),
> > +  sys.env.get("JAVA_HOME"),
> > +  // osx
> > +  try Some("/usr/libexec/java_home".!!.trim)
> > +  catch {
> > +    case _: Throwable => None
> > +  },
> > +  // linux
> > +  try Some(new File("which javac".!!.trim).getParentFile.getParent)
> > +  catch {
> > +    case _: Throwable => None
> > +  },
> > +  // windows??
> > +  // fallback
> > +  sys.props.get("java.home")
>
>  @edani <https://github.com/edani> are you on windows?
> Yes, for ensime purposes (I do run it on linux every once in a while) Eric
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/ensime/ensime-server/pull/499/files#r14665734>.
>