users@jaxb.java.net

Re: Maven 2 xjc plugin - configuration settings

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 02 Mar 2006 14:42:37 -0800

Malachi de Ælfweald wrote:
> On 3/2/06, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_sun.com> wrote:
>>
>> Malachi de Ælfweald wrote:
>> > 2) the .xjb bindings... don't they have to be associated with specific
>> > schemas? ie: wouldn't a HashMap work better than ArrayList?
>>
>> No, they don't. A list is suffice, actually.
>
>
> Any reason we can't just specify the parent directory and let it find them
> recursively like it does with the XSD files?

We do that. In XJC ant task you can do:

   <binding dir="src/main/schemas" includes="**/*.jaxb" />

or something like that.

> Yeah, I understand that. I had considered calling the Ant task directly at
> first too. And I do think there are specific people that it would be easier
> for.

I really want just one Maven2 plugin with one syntax. I'm just trying to
better understand what syntax works better.

> But, you know, you are the Code-Autogeneration-Guru. Why haven't you
> written a tool that will auto-create both of them? ;)

:-)

-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com