Mercurial > hg > graal-jvmci-8
comparison mxtool/mx.py @ 16847:043575a99815
moved NodeInfo processor into a separate project to avoid injecting Truffle DSL annotation processor into Graal projects
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Fri, 15 Aug 2014 16:31:49 +0200 |
parents | e3dd75b3c290 |
children | 0d987db807df |
comparison
equal
deleted
inserted
replaced
16846:e3dd75b3c290 | 16847:043575a99815 |
---|---|
467 aps = set() | 467 aps = set() |
468 if hasattr(self, '_declaredAnnotationProcessors'): | 468 if hasattr(self, '_declaredAnnotationProcessors'): |
469 aps = set(self._declaredAnnotationProcessors) | 469 aps = set(self._declaredAnnotationProcessors) |
470 for ap in aps: | 470 for ap in aps: |
471 if project(ap).definedAnnotationProcessorsDist is None: | 471 if project(ap).definedAnnotationProcessorsDist is None: |
472 abort('Project ' + ap + ' declared in annotationProcessors property of ' + self.name + ' does not define any annotation processors') | 472 config = join(project(ap).source_dirs()[0], 'META-INF', 'services', 'javax.annotation.processing.Processor') |
473 if not exists(config): | |
474 TimeStampFile(config).touch() | |
475 abort('Project ' + ap + ' declared in annotationProcessors property of ' + self.name + ' does not define any annotation processors.\n' + | |
476 'Please specify the annotation processors in ' + config) | |
473 | 477 |
474 allDeps = self.all_deps([], includeLibs=False, includeSelf=False, includeAnnotationProcessors=False) | 478 allDeps = self.all_deps([], includeLibs=False, includeSelf=False, includeAnnotationProcessors=False) |
475 for p in allDeps: | 479 for p in allDeps: |
476 # Add an annotation processor dependency | 480 # Add an annotation processor dependency |
477 if p.definedAnnotationProcessorsDist is not None: | 481 if p.definedAnnotationProcessorsDist is not None: |