Arijit Mukherjee wrote:
I am using castor 0.9.4 SourceGenerator to generate code from an XML
schema.

On Linux and Windows 2000, there would be roughly 120 generated files -
whereas for the same schema, only 83 files are generated on a Solaris
machine. This started happening after the schema was extended. But, for
the earlier schema, everything was properly generated on all the
systems.

It's something very weird which I'm not able to figure out. Can anyone
help?

I can think of a few things which might account for this. They're all pretty generic (not specific to Solaris, I mean):


* Different versions of castor on the different machines
* Different binding files (if any) -- e.g., you might have a binding file on Linux and W2K that is doing complexType renaming and thereby preventing some files from being overwritten
* Different castorbuilder.properties files -- specifically, if the javaclassmapping property were set to 'type' on Solaris and 'element' on the others you might get this effect.


Have you tried compiling/using the classes on Linux vs. on Solaris? If one or the other failed, that might give you a clue about what's different.

I just realized something else odd (so to speak): if you are doing a straight count of the files from source generator, I think you should always get an even number -- for every generated data object there should be a descriptor. So, unless you have descriptors turned off, I don't know how you'd get 83 files generated in one run.

Rhett

----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev




Reply via email to