Andrew Hughes wrote:
> My javadocs are also faily large, so I would like to keep them as seperate html
> files rather than place them as CDATA inside the xjb's. Sure I could use ant to
> copy the package.html files into the bound classes directory, but this seems
> like a function of the binding operation. Maybe I will have to copy them in with
> my ant target????
Ah, but if you want to write it as an html, sounds like it's best to
just write package.html and copy over. I mean, what do you expect XJC to
do? Isn't it just as easy (and probably easier) to write an Ant copy
task, as opposed to use a JAXB customization to let XJC know about your
package.html so that XJC can copy it?
(Besides, I believe such customization doesn't exist today, actually.)
>
>
> How can I add the "package.html / summary" to my external bindings????? Help
> would be very much appreciated.
>
> My xjb customization files:
> --------------------------------------------------------------------------------
> <jxb:bindings version="1.0"
> xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <jxb:bindings schemaLocation="../../../my/xsd/Foo.xsd" node="/xs:schema">
> <!-- _FooProperty -->
> <jxb:bindings node="//xs:element[@name='_Foo']">
> <jxb:class name="FooImpl"/>
> </jxb:bindings>
> </jxb:bindings>
> </jxb:bindings>
> --------------------------------------------------------------------------------
> <jxb:bindings version="1.0"
> xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <jxb:bindings schemaLocation="../../../my/xsd/Bar.xsd" node="/xs:schema">
> <!-- _Bar -->
> <jxb:bindings node="//xs:element[@name='_Bar']">
> <jxb:class name="BarImpl"/>
> </jxb:bindings>
> </jxb:bindings>
> </jxb:bindings>
> --------------------------------------------------------------------------------
> <jxb:bindings version="1.0"
> xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
> xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <jxb:bindings schemaLocation="../../../my/xsd/Base.xsd" node="/xs:schema">
> <!-- version was decimal but doesnt work with x.x.x only x.x -->
> <jxb:bindings
> node="//xs:complexType[@name='BaseType']//xs:attribute[@name='version']">
> <jxb:property name="version">
> <jxb:baseType name="java.lang.String">
> <jxb:javaType name="java.lang.String"/>
> </jxb:baseType>
> </jxb:property>
> </jxb:bindings>
> </jxb:bindings>
> </jxb:bindings>
> --------------------------------------------------------------------------------
>
> Cheers,
>
>
> AH
>
>
> --------------------------------------------------------------------- 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