users@jaxb.java.net

Re: changing package names in a Plugin

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 27 Mar 2006 10:55:47 -0800

Andreas Pakulat wrote:
> Hi,
>
> I'm struggling a bit here with writing a Plugin for xjc. My goal is to
> prefix all generated package names (created from the targetNamespace)
> with my own package, so that I end up with a structure like
>
> my.company.some.namespace
>
> I started with the Camelcase Plugin as this one changes the class name
> and changed the NameConverter.Standard subclass to return some arbitrary
> string for toPackageName(). However it seems like my plugin isn't used
> at all.

As Malachi responded, I think the best thing to do would be to use a
customization.

If you would still like to pursue a plugin approach, let me know so that
we can think about changing XJC a bit to let you do that.

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com