users@jaxb.java.net

Re: supressing class generation with xjc

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 04 Feb 2005 10:34:43 -0800

Jerry Lacy wrote:
> The problem I am having has to do with packaging the framework for distribution.
> Ideally, I would compile the framework schemas and include the resulting JAXB
> classes into my framework.jar distribution. The user of the framework would
> then define the project specific namespace and schema (which would <include> the
> framework schema) and compile it into their project using xjc without having xjc
> regenerate all of the framework JAXB classes (since they already are present in
> framework.jar). I do not see a way to accomplish this since, when the user
> executes xjc to compile the project specific schema, xjc will regenerate the
> framework JAXB objects as well.

The current way of doing this is to instruct users to:

        1. compile their schemas
        2. delete a part of the generated stuff that corresponds to
           the framework schema

If you can think of an easier way to do so, I'm very interested in
incorporating that into JAXB RI 2.0.


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com