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

annotation processor couldnot get StandardLocation.SOURCE_PATH correctly #57

@nuclearg

Description

@nuclearg

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions