Scott Allan wrote:
> In lib/jaxb-xjc.jar, there is a file called, META-INF/services/
> com.sun.tools.xjc.Plugin. You need to add an entry so it looks like
> this:
>
> com.sun.tools.xjc.addon.locator.SourceLocationAddOn
> com.sun.tools.xjc.addon.sync.SynchronizedMethodAddOn
> com.sun.tools.xjc.addon.at_generated.PluginImpl
> com.sun.tools.xjc.addon.code_injector.PluginImpl <=== add this line
>
> It should really be added to the base code, but it's tons of fun to
> take the time to try and figure it out yourself why all the plugins
> work except this one.
I think I'll move the entire code injector plugin to jaxb2-commons as a
plugin of its own.
A part of the point of its existence is to serve as an example, so I
think that's better.
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com