Notification upon completion of compilation
gunnar at hibernate.org
Sun Jan 6 08:51:34 UTC 2019
So I've found one solution that seems good enough for my purposes: I'm
counting the PARSE finished events. That way I know when I've received
the last ANALYZE finished event, at which point I can take my required
action (generating a resource file in this case).
Am Sa., 5. Jan. 2019 um 23:04 Uhr schrieb Gunnar Morling <gunnar at hibernate.org>:
> I'm exploring the (unsupported) plug-in API of javac. Java 9 added a
> task event kind TaskEvent.Kind.COMPILATION which allows a listener to
> react to the completion of the compilation.
> Is there a way to achieve the same under Java 8? JDK-8033414 ,
> which introduced the new event kind states "there is no easy way to be
> notified when the compilation is complete". What way would that be,
> from looking into the code I couldn't see any approach, be it easy or
> more complex.
>  https://bugs.openjdk.java.net/browse/JDK-8033414
More information about the compiler-dev