You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Neil Pitman <ne...@mahjongmania.com> on 2005/08/18 11:32:10 UTC
deep nesting
I ran across a rather curious and nasty limitation with the design of JaxMe.
Since each nested element adds an inner class, as the elements nest, the
real class file name gets longer and longer. On certain unnamed files
systems the maximum file system name is not very long (around 255
characters). Since the file names include the root source directory and the
namespace and the element nesting, that can exceed the 255 characters. If
that happens those files go into the twilight zone: the ant Jar task does
not pick them up; they don't act right in the OS.
I'm not sure that I have a suggestion. It's more of a caveat. While you
don't have too much control over the element names, you might have some over
the namespace. And certainly you have control over you source root.
Perhaps one could have an option to generate to a different path than the
namespace.
Neil
Re: deep nesting
Posted by Jochen Wiedmann <jo...@gmail.com>.
On 8/18/05, Neil Pitman <ne...@mahjongmania.com> wrote:
> Perhaps one could have an option to generate to a different path than the
> namespace.
The most simple solution would be to make some intermediate elements
global. I'd recommend that. Besides, you may choose the names of the
generated classes using the jaxb:class customization. The class names
do not need to match the element names. In other words, you may choose
appropriate abbreviations, which possibly allows to get below 255
characters.
Jochen
--
What are the first steps on the moon, compared to your child's?
---------------------------------------------------------------------
To unsubscribe, e-mail: jaxme-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: jaxme-dev-help@ws.apache.org