Skip to content

Commit

Permalink
Include -processorpaths when searching for annotation processors.
Browse files Browse the repository at this point in the history
	Change on 2016/02/02 by tball <tball@google.com>
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=113665634
  • Loading branch information
tomball authored and Keith Stanger committed Feb 3, 2016
1 parent bdc8f9b commit 2fcae6a
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -119,8 +119,9 @@ public void process(Iterable<String> fileArgs) {
* in case any might have annotations that should be processed.
*/
private boolean hasAnnotationProcessors() {
ServiceLoader<Processor> serviceLoader = ServiceLoader.load(
Processor.class, new PathClassLoader(Options.getClassPathEntries()));
PathClassLoader loader = new PathClassLoader(Options.getClassPathEntries());
loader.addPaths(Options.getProcessorPathEntries());
ServiceLoader<Processor> serviceLoader = ServiceLoader.load(Processor.class, loader);
Iterator<Processor> iterator = serviceLoader.iterator();
return iterator.hasNext();
}
Expand Down

0 comments on commit 2fcae6a

Please sign in to comment.