comparison mxtool/mx.py @ 18887: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
comparison
equal deleted inserted replaced
18886:9afe8fbe088c 18887:19d99eec8876
2123 warn("Could not find all classpaths: boot='" + str(self._bootclasspath) + "' extdirs='" + str(self._extdirs) + "' endorseddirs='" + str(self._endorseddirs) + "'") 2123 warn("Could not find all classpaths: boot='" + str(self._bootclasspath) + "' extdirs='" + str(self._extdirs) + "' endorseddirs='" + str(self._endorseddirs) + "'")
2124 self._bootclasspath = _filter_non_existant_paths(self._bootclasspath) 2124 self._bootclasspath = _filter_non_existant_paths(self._bootclasspath)
2125 self._extdirs = _filter_non_existant_paths(self._extdirs) 2125 self._extdirs = _filter_non_existant_paths(self._extdirs)
2126 self._endorseddirs = _filter_non_existant_paths(self._endorseddirs) 2126 self._endorseddirs = _filter_non_existant_paths(self._endorseddirs)
2127 2127
2128 def __repr__(self):
2129 return "JavaConfig(" + str(self.jdk) + ", " + str(self.debug_port) + ")"
2130
2131 def __str__(self):
2132 return "Java " + str(self.version) + " (" + str(self.javaCompliance) + ") from " + str(self.jdk)
2133
2128 def __hash__(self): 2134 def __hash__(self):
2129 return hash(self.jdk) 2135 return hash(self.jdk)
2130 2136
2131 def __cmp__(self, other): 2137 def __cmp__(self, other):
2132 if isinstance(other, JavaConfig): 2138 if isinstance(other, JavaConfig):
2133 return cmp(self.javaCompliance, other.javaCompliance) 2139 return cmp(self.jdk, other.jdk)
2134 raise TypeError() 2140 raise TypeError()
2135 2141
2136 def format_cmd(self, args, addDefaultArgs): 2142 def format_cmd(self, args, addDefaultArgs):
2137 if addDefaultArgs: 2143 if addDefaultArgs:
2138 return [self.java] + self.processArgs(args) 2144 return [self.java] + self.processArgs(args)