Skip to content
This repository has been archived by the owner on Jul 30, 2021. It is now read-only.

annotation processor couldnot get StandardLocation.SOURCE_PATH correctly #57

Open
nuclearg opened this issue Aug 23, 2017 · 1 comment

Comments

@nuclearg
Copy link

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
Copy link
Member

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants