Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 14764:5823c399e28f
pylint fixes
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Wed, 26 Mar 2014 14:43:50 +0100 |
parents | a6c1c3eb20c4 |
children | 40aa1eb176db |
comparison
equal
deleted
inserted
replaced
14763:a6c1c3eb20c4 | 14764:5823c399e28f |
---|---|
120 # Verify that a JDK exists for this project if its compliance level is | 120 # Verify that a JDK exists for this project if its compliance level is |
121 # less than the compliance level of the default JDK | 121 # less than the compliance level of the default JDK |
122 jdk = java(self.javaCompliance) | 122 jdk = java(self.javaCompliance) |
123 if jdk is None and self.javaCompliance < java().javaCompliance: | 123 if jdk is None and self.javaCompliance < java().javaCompliance: |
124 abort('Cannot find ' + str(self.javaCompliance) + ' JDK required by ' + name + '. ' + | 124 abort('Cannot find ' + str(self.javaCompliance) + ' JDK required by ' + name + '. ' + |
125 'Specify it with --extra-java-homes option or EXTRA_JAVA_HOMES environment variable.') | 125 'Specify it with --extra-java-homes option or EXTRA_JAVA_HOMES environment variable.') |
126 | 126 |
127 # Create directories for projects that don't yet exist | 127 # Create directories for projects that don't yet exist |
128 if not exists(d): | 128 if not exists(d): |
129 os.mkdir(d) | 129 os.mkdir(d) |
130 for s in self.source_dirs(): | 130 for s in self.source_dirs(): |
1408 if self.debug_port is not None: | 1408 if self.debug_port is not None: |
1409 self.java_args += ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=' + str(self.debug_port)] | 1409 self.java_args += ['-Xdebug', '-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=' + str(self.debug_port)] |
1410 | 1410 |
1411 def __hash__(self): | 1411 def __hash__(self): |
1412 return hash(self.jdk) | 1412 return hash(self.jdk) |
1413 | 1413 |
1414 def __cmp__(self, other): | 1414 def __cmp__(self, other): |
1415 if isinstance(other, JavaConfig): | 1415 if isinstance(other, JavaConfig): |
1416 return cmp(self.javaCompliance, other.javaCompliance) | 1416 return cmp(self.javaCompliance, other.javaCompliance) |
1417 raise TypeError() | 1417 raise TypeError() |
1418 | 1418 |
3261 if not exists(join(p.dir, 'nbproject')): | 3261 if not exists(join(p.dir, 'nbproject')): |
3262 os.makedirs(join(p.dir, 'nbproject')) | 3262 os.makedirs(join(p.dir, 'nbproject')) |
3263 | 3263 |
3264 jdk = java(p.javaCompliance) | 3264 jdk = java(p.javaCompliance) |
3265 | 3265 |
3266 if not jdk: | 3266 if not jdk: |
3267 log('Excluding {0} (JDK with compliance level {1} not available)'.format(p.name, p.javaCompliance)) | 3267 log('Excluding {0} (JDK with compliance level {1} not available)'.format(p.name, p.javaCompliance)) |
3268 continue | 3268 continue |
3269 | 3269 |
3270 jdks.add(jdk) | 3270 jdks.add(jdk) |
3271 | 3271 |
3272 out = XMLDoc() | 3272 out = XMLDoc() |
3273 out.open('project', {'name' : p.name, 'default' : 'default', 'basedir' : '.'}) | 3273 out.open('project', {'name' : p.name, 'default' : 'default', 'basedir' : '.'}) |
3274 out.element('description', data='Builds, tests, and runs the project ' + p.name + '.') | 3274 out.element('description', data='Builds, tests, and runs the project ' + p.name + '.') |