users@jaxb.java.net

Re: Ant Task and Vendor Extensions

From: Ed Mooney <Ed.Mooney_at_Sun.COM>
Date: Mon, 13 Oct 2003 10:54:23 -0400

Hi Adam,

Sorry, but this is a bug in XJCTask that will be fixed in the next
release. In the meantime, you could try JAXB On the Web:

     http://soapinterop.java.sun.com/xjc/

There's a related thread at:

 
https://jaxb.dev.java.net/servlets/BrowseList?list=users&by=thread&from=8515

Regards,
-- 
Ed Mooney         |Sun Microsystems, Inc.|Time flies like
Java Web Services |UBUR02-201            |an arrow, but
Ed.Mooney_at_Sun.COM |1 Network Drive       |fruit flies like
781-442-0459      |Burlington, MA  01803 |a banana. Groucho
Adam Sherman wrote:
> Well, I'm having a hell of a time getting this to work for some reason.
> 
> My Ant target:
> 
>     <target name="generate" depends="init,compile" description="Generate 
> JAXB Binding Classes">
>         <taskdef name="xjc" classname="com.sun.tools.xjc.XJCTask">
>             <classpath refid="path.build"/>
>         </taskdef>
>         <xjc    target="${build.generated}"
>                 package="com.terravox.sdms.types"
>                 extension="true">
>             <classpath>
>                 <fileset dir="${lib.jaxb}">
>                     <include name="**/*.jar"/>
>                 </fileset>
>                 <fileset dir="${lib.jwsdp}">
>                     <include name="**/*.jar"/>
>                 </fileset>
>                 <path location="${build.classes}"/>
>             </classpath>
> 
>             <!-- This dummy schema has global customizations -->
>             <schema file="${jaxb.bindings}"/>
>            
>             <schema dir="${src.schema}" includes="**/*.xsd"/>
>            
>             <produces dir="${build.generated}" includes="**/*.java"/>
>         </xjc>
>     </target>
> 
> My customization file:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
>           xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
>           xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
>           jaxb:extensionBindingPrefixes="xjc"
>           jaxb:version="1.0">
>    <xs:annotation>
>       <xs:appinfo>
>          <jaxb:globalBindings generateIsSetMethod="true">
>         <xjc:superClass name="com.terravox.sdms.types.BaseType"/>
>          </jaxb:globalBindings>
>       </xs:appinfo>
>    </xs:annotation>
> </xs:schema>
> 
> The globalBindings to not seem to have any effect at all.
> 
> Does the above look correct?
> 
> Thanks,
> 
> A.
> 
> 
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net