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.
--
Adam Sherman
Tritus CG Inc
+1 (613) 797-6819
http://www.tritus.ca/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net