Passing options to compiler plug-in
gunnar at hibernate.org
Tue Jan 29 22:35:53 UTC 2019
I'm working on a javac plug-in (i.e. implementing
com.sun.source.util.Plugin) and would like to pass some options to it.
I'm currently using annotation processor options (-A...), as that was
the only way I could find to pass options unknown to javac. This
creates a warning though "The following options were not recognized by
any processor: ...". It's no big problem, but I'm curious whether
there's a better way.
The plug-in in question btw. is a tool for validating an application's
(module-internal) architecture by comparing package relationships
against a given model definition .
More information about the compiler-dev