users@jaxb.java.net

RE: XJC2Task setBinding

From: Jonathan Johnson <jonjohnson_at_mail.com>
Date: Mon, 6 Mar 2006 21:38:29 -0500

>> or call the setBinding method multiple times.

I'm now calling setBinding multiple times. Thanks.


|-----Original Message-----
|From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
|Sent: Monday, March 06, 2006 7:24 PM
|To: users_at_jaxb.dev.java.net
|Subject: Re: XJC2Task setBinding
|
|
|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
|