users@jaxb.java.net

Re: Unable to apply a customisation in a multiple compilation scenario

From: Aleksei Valikov <valikov_at_gmx.net>
Date: Fri, 6 Jun 2008 12:21:06 +0200

Hi.

> So that flag is what actually makes the episode work - without it, all
> classes will be generated on each compilation, which is precisely what the
> episode is designed to prevent (hence the fact that it's always set in the
> plugin).

Yes, you're right.

I think the following is happening:
* Schema is excluded from generation by an episode file.
* Therefore javaType customization is not processed and is not marked
as acknowledged.
* Still UnusedCustomizationChecker is applied to all the schemas
including not mapped ones.

I am not sure what is the best method to resolve this. From the one
hand, UnusedCustomizationChecker should theoretically not be applied
to non-mapped schemas. From the other hand javaType customization
should be used even if there's no classes generated for the schema
which contains it.
So I think simple types must still be processed... Otherwise you will
not get the javaType customizations in other schemas.

ps. Another trick I sometimes apply is generate the code and then
explicitly delete it if I don't need it.

Bye.
/lexi