Hello,
How would one use "-mode forest" from Ant?
If I try:
<target name="xjc-binding" depends="info, clean">
<xjc schema="${project.root.dir}/${xjc.schema}"
binding="${project.root.dir}/${xjc.binding}" target="${java.source.dir}">
<arg value="-use-runtime"/>
<arg value="com.seagullsw.toolbox.xml.jaxb.impl.runtime"/>
<arg value="-mode forest"/>
</xjc>
</target>
or:
<arg value="-mode"/>
<arg value="forest"/>
I get:
C:\cvs-store\transidiom\deve\Java\Build\jaxb\src\server\backend\ims\config>a
nt
Buildfile: build.xml
all:
info:
[echo] Building with Apache Ant version 1.5.3 compiled on April 16 2003
[echo] Java: Sun Microsystems Inc. 1.3.1_08
clean:
clean.java.bind.dir:
xjc-binding:
BUILD FAILED
file:C:/cvs-store/transidiom/deve/Java/Build/jaxb/xjc-sub.xml:56:
unrecognized parameter -mode forest
and:
BUILD FAILED
file:C:/cvs-store/transidiom/deve/Java/Build/jaxb/xjc-sub.xml:56:
unrecognized parameter -mode
Thanks,
Gary
-----Original Message-----
From: Kohsuke Kawaguchi [mailto:Kohsuke.Kawaguchi_at_Sun.COM]
Sent: Monday, June 16, 2003 07:50
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: WSDP 1.2 and xsd:import
Sounds like a bug to me, too.
If you could distill your problem down to a test case, that would be
great. Or if you can just send us the whole schema, that would be fine
by me, too.
Also, try "-mode forest" option. This will make XJC dump all the inputs
it recognized along with their URIs. Probably you will find the same
schema listed twice under different URIs, and if you find them, send
please post those URIs (or send it to jaxb-comment_at_sun.com if you don't
want that to be public.)
Finally, the -use-runtime option is probably irrelevant for this problem.
--
Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>