In order to to match the scenatio I described, how would I also tell the xjc
task to delete .class files that will no longer be produced by their .java
counterparts?
Gary
-----Original Message-----
From: Kohsuke Kawaguchi [mailto:kohsuke.kawaguchi_at_sun.com]
Sent: Friday, December 13, 2002 9:06 AM
To: JAXB-INTEREST_at_JAVA.SUN.COM
Subject: Re: What would you like to see in tools.
> (1) Better Ant Integration.
>
> It would quite helpful if the ant task only ran XJC if the schema had
> changed and cleaned up any left overs. As was mentioned on the list this
> could be tricky. If a new version of schema no longer contains an element
> that used to produce a java class, the class is left behind and needs to
be
> manually cleaned up.
Good point. The intended semantics of
<xjc target="src">
<schema dir="src" includes="*.xsd"/>
<!-- other dependencies -->
<depends dir="src" includes="*.xsdmod"/>
<produces dir="src/org/acme/foo" includes="*.java"/>
</xjc>
is that XJC will remove everything that matches "produces" before it
proceeds. So I think this includes your "telling-XJC-own-the-package"
strategy.
regards,
--
Kohsuke KAWAGUCHI
Sun Microsystems kohsuke.kawaguchi_at_sun.com