Passing options to compiler plug-in
Gunnar Morling
gunnar at hibernate.org
Tue Jan 29 22:35:53 UTC 2019
Hi,
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 [1].
Thanks,
--Gunnar
[1] https://github.com/moditect/deptective
More information about the compiler-dev
mailing list