users@jaxb.java.net

Re: Generate java packages to reflect structure of schema tree?

From: Farrukh Najmi <farrukh_at_wellfleetsoftware.com>
Date: Sun, 04 Nov 2007 08:56:06 -0500

I meant many directory levels (~30), many namespaces (~15) and many xsd
files (~75).


Kenny MacLeod wrote:
> when you say "several levels", what do you mean by that? is the
> schema all in one namespace?
>
>
> Farrukh Najmi wrote:
>>
>> I have a fairly large schema directory tree with several levels to
>> compile. Each directory has numerous files.
>> I would like to generate the bindings such that it generates java
>> packages reflecting the directory structure of
>> my schema tree.
>>
>> Is there a way to accomplish this more efficiently than to:
>>
>> * compile each directory separately and specified a package for each
>> directory (vbery tedious and verbose in maven)
>> * Specify a package customization for each schema file (very
>> painfully tedious)
>>
>> What would be nice is some mode in xjc that just does the right thing
>> by taking the specified package name and map it to base package
>> (fixing any invalid java names in the process) and then for each
>> sub-directory map it to a sub-package corresponding to the
>> sub-directory name.
>>
>> Shall I file an RFE on this? What is the best approach for this
>> problem using the latest JAXB release. TIA.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>


-- 
Regards,
Farrukh
Web: http://www.wellfleetsoftware.com