Mercurial > hg > truffle
diff 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 |
line wrap: on
line diff
--- a/mxtool/mx.py Fri Aug 15 13:54:37 2014 +0200 +++ b/mxtool/mx.py Fri Aug 15 16:31:49 2014 +0200 @@ -469,7 +469,11 @@ aps = set(self._declaredAnnotationProcessors) for ap in aps: if project(ap).definedAnnotationProcessorsDist is None: - abort('Project ' + ap + ' declared in annotationProcessors property of ' + self.name + ' does not define any annotation processors') + config = join(project(ap).source_dirs()[0], 'META-INF', 'services', 'javax.annotation.processing.Processor') + if not exists(config): + TimeStampFile(config).touch() + abort('Project ' + ap + ' declared in annotationProcessors property of ' + self.name + ' does not define any annotation processors.\n' + + 'Please specify the annotation processors in ' + config) allDeps = self.all_deps([], includeLibs=False, includeSelf=False, includeAnnotationProcessors=False) for p in allDeps: