Mercurial > hg > graal-compiler
diff mxtool/mx.py @ 18893:19d99eec8876
Fix mx igv: do not use Java < 1.8, handle the case where no JDKs are supported. Give some hints when the igv ant build fails.
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Wed, 21 Jan 2015 11:43:22 +0100 |
parents | c446d00f2cdf |
children | 4dc7b1f66de3 |
line wrap: on
line diff
--- a/mxtool/mx.py Mon Jan 19 18:00:28 2015 +0100 +++ b/mxtool/mx.py Wed Jan 21 11:43:22 2015 +0100 @@ -2125,12 +2125,18 @@ self._extdirs = _filter_non_existant_paths(self._extdirs) self._endorseddirs = _filter_non_existant_paths(self._endorseddirs) + def __repr__(self): + return "JavaConfig(" + str(self.jdk) + ", " + str(self.debug_port) + ")" + + def __str__(self): + return "Java " + str(self.version) + " (" + str(self.javaCompliance) + ") from " + str(self.jdk) + def __hash__(self): return hash(self.jdk) def __cmp__(self, other): if isinstance(other, JavaConfig): - return cmp(self.javaCompliance, other.javaCompliance) + return cmp(self.jdk, other.jdk) raise TypeError() def format_cmd(self, args, addDefaultArgs):