users@jaxb.java.net

Re: ANT + XJC

From: Philip A. Culver <pculver_at_bostonatlantic.net>
Date: Tue, 10 Jun 2003 14:21:18 -0400

Thanks Ed. That worked great for us!

-----Original Message-----
From: Discussion list for the Java Architecture for XML Binding
[mailto:JAXB-INTEREST_at_JAVA.SUN.COM] On Behalf Of Ed Mooney
Sent: Tuesday, June 10, 2003 12:52 PM
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: ANT + XJC


Hi Phil,

See jwsdp-1.2/jaxb/docs/ant.html for the <produces> nested element. Goes
something like this:

     <xjc target="classes">
       <schema dir="0p70/xsd" includes="*.xsd"/>
       <binding dir="." includes="ubl.xjb"/>
       <produces
         dir="."
         includes="classes/org/oasis/ubl/commonaggregatetypes/*.java"/>
     </xjc>

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
Philip A. Culver wrote:
> Hi All,
>
> We are using the com.sun.tools.xjc.XJCTask class as a ANT task in our
> ant build scripts.  The "problem" is that every time we compile the
> schema file is reprocessed.  It seems that the task does not detect
> that the file has not changed since the last build.  Is there any way
> to cause the XJCTask to detect that the file has not been modified
> since the last build?
>
> Thanks,
> Phil Culver