users@jaxb.java.net

Re: XJC2Task setBinding

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Mon, 06 Mar 2006 16:24:01 -0800

Jonathan Johnson wrote:
> Kohsuke,
>
> XJC2Task has a setBinding method. It takes one file name as the binding
> file. Is is possible to bind more than one xjb file to a schema? Should
> there be a xjc2TaskAdapter.setBindings method that takes an array of binding
> files?

Yes. This method is for Ant, so that the user can write:

    <xjc binding="abc/def.xjb" />

if they only have one. If you have more, you can just add it directly to
  the XJC2Task.options (I just made it public), or call the setBinding
method multiple times.


> In the maven 2 plugin in the class xjc2TaskAdapter its setting
>
> xjc2TaskAdapter.setBinding(bindingsFilenames.get(0));
>
> but I think we need a call like
>
> xjc2TaskAdapter.setBindings(bindingsFilenames);
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com