Ed,
I have a similar set up and my xjc task does work. Its just the
extension="true" attribute that doesn't seem to be making a difference. The
schemas that I'm using have some abstract elements which require me to use
the -extension argument to the xjc command. Supposedly this is supported in
the xjc ant task with an extension="true" attribute to the xjc task. But
adding this doesn't seem to make a difference when running ant as it does
when I simply run xjc from the command line.
Jerald
-----Original Message-----
From: Ed Mooney [mailto:Ed.Mooney_at_Sun.COM]
Sent: Wednesday, July 09, 2003 4:20 PM
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: Use of <appinfo> with JAXB
Hi Jerald,
I suspect you're not picking up the right libraries. Then enclosed build
file worked for me.
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
Pratt, Jerald wrote:
> Ed,
>
> You are right, my statement should have said "${src.dir}".
>
> But adding the extension="true" doesn't seem to make any difference in my
> output/error messages whereas if I run xjc on the command line with the
> -extension option it does make a difference.
>
> Ideas????
>
> Jerald
>
>
> -----Original Message-----
> From: Ed Mooney [mailto:Ed.Mooney_at_Sun.COM]
> Sent: Wednesday, July 09, 2003 3:44 PM
> To: JAXB-INTEREST_at_JAVA.SUN.COM
> Subject: Re: Use of <appinfo> with JAXB
>
>
> Hi Jerald,
>
> XJCTask does support an extension attribute.
>
> Not sure it's relevant, but shouldn't "{src.dir}" be "${src.dir}"?
>
> 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
>
> Pratt, Jerald wrote:
>
>>Ryan,
>>
>>I was able to get some success with using the -extension option that you
>>suggested. But I can't seem to get this to work from my ant task.
>>According to the Ant page in the JAXB documentation, I should be able to
>>provide an extension="true" attribute to my <xjc> task. But this does not
>>seem to do anything. Do you know if the extension attribute is actually
>>supported for the xjc ant task????
>>
>> <xjc target="{src.dir}" extension="true">
>> <schema dir="src" includes="*.xsd"/>
>> </xjc>
>>
>>Jerald
>>
>>
>
> [ ... ]