querydsl / apt-maven-plugin

Maven APT plugin
Apache License 2.0
79 stars 41 forks source link

annotation processor couldnot get StandardLocation.SOURCE_PATH correctly #57

Open nuclearg opened 7 years ago

nuclearg commented 7 years ago

I wrote a annotation processor which reads raw .java source files to do some work, it works well.

Now because of some reason, I changed to invoke the apt using this plugin, then compilation failed.

FileObject fo = this.processingEnv.getFiler().getResource(StandardLocation.SOURCE_PATH, "", filename);

This statement could not return results but a FileNotFoundException.

Could someone help? Thanks!

Shredder121 commented 7 years ago

Could you give us an example project, that we can test?